@maxim_mazurok/gapi.client.texttospeech-v1beta1 0.0.20220808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +222 -0
- package/package.json +20 -0
- package/readme.md +78 -0
- package/tests.ts +67 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Text-to-Speech API v1beta1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/text-to-speech/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1
|
|
13
|
+
// Revision: 20220808
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Text-to-Speech API v1beta1 */
|
|
19
|
+
function load(urlOrObject: "https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "texttospeech", version: "v1beta1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "texttospeech", version: "v1beta1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace texttospeech {
|
|
26
|
+
interface AudioConfig {
|
|
27
|
+
/** Required. The format of the audio byte stream. */
|
|
28
|
+
audioEncoding?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional. Input only. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the
|
|
31
|
+
* order they are given. See [audio profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
|
|
32
|
+
*/
|
|
33
|
+
effectsProfileId?: string[];
|
|
34
|
+
/** Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. */
|
|
35
|
+
pitch?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Optional. The synthesis sample rate (in hertz) for this audio. When this is specified in SynthesizeSpeechRequest, if this is different from the voice's natural sample rate, then the
|
|
38
|
+
* synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality), unless the specified sample rate is not supported for the
|
|
39
|
+
* encoding chosen, in which case it will fail the request and return google.rpc.Code.INVALID_ARGUMENT.
|
|
40
|
+
*/
|
|
41
|
+
sampleRateHertz?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast.
|
|
44
|
+
* If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.
|
|
45
|
+
*/
|
|
46
|
+
speakingRate?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Optional. Input only. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play
|
|
49
|
+
* at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at
|
|
50
|
+
* approximately twice the amplitude of the normal native signal amplitude. Strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value
|
|
51
|
+
* greater than that.
|
|
52
|
+
*/
|
|
53
|
+
volumeGainDb?: number;
|
|
54
|
+
}
|
|
55
|
+
interface CustomVoiceParams {
|
|
56
|
+
/** Required. The name of the AutoML model that synthesizes the custom voice. */
|
|
57
|
+
model?: string;
|
|
58
|
+
/** Optional. The usage of the synthesized audio to be reported. */
|
|
59
|
+
reportedUsage?: string;
|
|
60
|
+
}
|
|
61
|
+
interface ListVoicesResponse {
|
|
62
|
+
/** The list of voices. */
|
|
63
|
+
voices?: Voice[];
|
|
64
|
+
}
|
|
65
|
+
interface SynthesisInput {
|
|
66
|
+
/**
|
|
67
|
+
* The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information,
|
|
68
|
+
* see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
|
|
69
|
+
*/
|
|
70
|
+
ssml?: string;
|
|
71
|
+
/** The raw text to be synthesized. */
|
|
72
|
+
text?: string;
|
|
73
|
+
}
|
|
74
|
+
interface SynthesizeSpeechRequest {
|
|
75
|
+
/** Required. The configuration of the synthesized audio. */
|
|
76
|
+
audioConfig?: AudioConfig;
|
|
77
|
+
/** Whether and what timepoints are returned in the response. */
|
|
78
|
+
enableTimePointing?: string[];
|
|
79
|
+
/** Required. The Synthesizer requires either plain text or SSML as input. */
|
|
80
|
+
input?: SynthesisInput;
|
|
81
|
+
/** Required. The desired voice of the synthesized audio. */
|
|
82
|
+
voice?: VoiceSelectionParams;
|
|
83
|
+
}
|
|
84
|
+
interface SynthesizeSpeechResponse {
|
|
85
|
+
/** The audio metadata of `audio_content`. */
|
|
86
|
+
audioConfig?: AudioConfig;
|
|
87
|
+
/**
|
|
88
|
+
* The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the
|
|
89
|
+
* WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
|
|
90
|
+
*/
|
|
91
|
+
audioContent?: string;
|
|
92
|
+
/** A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `` of SSML input. */
|
|
93
|
+
timepoints?: Timepoint[];
|
|
94
|
+
}
|
|
95
|
+
interface Timepoint {
|
|
96
|
+
/** Timepoint name as received from the client within `` tag. */
|
|
97
|
+
markName?: string;
|
|
98
|
+
/** Time offset in seconds from the start of the synthesized audio. */
|
|
99
|
+
timeSeconds?: number;
|
|
100
|
+
}
|
|
101
|
+
interface Voice {
|
|
102
|
+
/** The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw"). */
|
|
103
|
+
languageCodes?: string[];
|
|
104
|
+
/** The name of this voice. Each distinct voice has a unique name. */
|
|
105
|
+
name?: string;
|
|
106
|
+
/** The natural sample rate (in hertz) for this voice. */
|
|
107
|
+
naturalSampleRateHertz?: number;
|
|
108
|
+
/** The gender of this voice. */
|
|
109
|
+
ssmlGender?: string;
|
|
110
|
+
}
|
|
111
|
+
interface VoiceSelectionParams {
|
|
112
|
+
/** The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration. */
|
|
113
|
+
customVoice?: CustomVoiceParams;
|
|
114
|
+
/**
|
|
115
|
+
* Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should
|
|
116
|
+
* not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use
|
|
117
|
+
* this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a
|
|
118
|
+
* different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no"
|
|
119
|
+
* (Norwegian)".
|
|
120
|
+
*/
|
|
121
|
+
languageCode?: string;
|
|
122
|
+
/** The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and gender. */
|
|
123
|
+
name?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not
|
|
126
|
+
* requirement; if a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.
|
|
127
|
+
*/
|
|
128
|
+
ssmlGender?: string;
|
|
129
|
+
}
|
|
130
|
+
interface TextResource {
|
|
131
|
+
/** Synthesizes speech synchronously: receive results after all text input has been processed. */
|
|
132
|
+
synthesize(request: {
|
|
133
|
+
/** V1 error format. */
|
|
134
|
+
"$.xgafv"?: string;
|
|
135
|
+
/** OAuth access token. */
|
|
136
|
+
access_token?: string;
|
|
137
|
+
/** Data format for response. */
|
|
138
|
+
alt?: string;
|
|
139
|
+
/** JSONP */
|
|
140
|
+
callback?: string;
|
|
141
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
142
|
+
fields?: string;
|
|
143
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
144
|
+
key?: string;
|
|
145
|
+
/** OAuth 2.0 token for the current user. */
|
|
146
|
+
oauth_token?: string;
|
|
147
|
+
/** Returns response with indentations and line breaks. */
|
|
148
|
+
prettyPrint?: boolean;
|
|
149
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
150
|
+
quotaUser?: string;
|
|
151
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
152
|
+
upload_protocol?: string;
|
|
153
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
154
|
+
uploadType?: string;
|
|
155
|
+
/** Request body */
|
|
156
|
+
resource: SynthesizeSpeechRequest;
|
|
157
|
+
}): Request<SynthesizeSpeechResponse>;
|
|
158
|
+
synthesize(request: {
|
|
159
|
+
/** V1 error format. */
|
|
160
|
+
"$.xgafv"?: string;
|
|
161
|
+
/** OAuth access token. */
|
|
162
|
+
access_token?: string;
|
|
163
|
+
/** Data format for response. */
|
|
164
|
+
alt?: string;
|
|
165
|
+
/** JSONP */
|
|
166
|
+
callback?: string;
|
|
167
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
168
|
+
fields?: string;
|
|
169
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
170
|
+
key?: string;
|
|
171
|
+
/** OAuth 2.0 token for the current user. */
|
|
172
|
+
oauth_token?: string;
|
|
173
|
+
/** Returns response with indentations and line breaks. */
|
|
174
|
+
prettyPrint?: boolean;
|
|
175
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
176
|
+
quotaUser?: string;
|
|
177
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
178
|
+
upload_protocol?: string;
|
|
179
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
180
|
+
uploadType?: string;
|
|
181
|
+
},
|
|
182
|
+
body: SynthesizeSpeechRequest): Request<SynthesizeSpeechResponse>;
|
|
183
|
+
}
|
|
184
|
+
interface VoicesResource {
|
|
185
|
+
/** Returns a list of Voice supported for synthesis. */
|
|
186
|
+
list(request?: {
|
|
187
|
+
/** V1 error format. */
|
|
188
|
+
"$.xgafv"?: string;
|
|
189
|
+
/** OAuth access token. */
|
|
190
|
+
access_token?: string;
|
|
191
|
+
/** Data format for response. */
|
|
192
|
+
alt?: string;
|
|
193
|
+
/** JSONP */
|
|
194
|
+
callback?: string;
|
|
195
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
196
|
+
fields?: string;
|
|
197
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
198
|
+
key?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the
|
|
201
|
+
* ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify `"en-NZ"`, all `"en-NZ"` voices will be returned. If you
|
|
202
|
+
* specify `"no"`, both `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be returned.
|
|
203
|
+
*/
|
|
204
|
+
languageCode?: string;
|
|
205
|
+
/** OAuth 2.0 token for the current user. */
|
|
206
|
+
oauth_token?: string;
|
|
207
|
+
/** Returns response with indentations and line breaks. */
|
|
208
|
+
prettyPrint?: boolean;
|
|
209
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
210
|
+
quotaUser?: string;
|
|
211
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
212
|
+
upload_protocol?: string;
|
|
213
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
214
|
+
uploadType?: string;
|
|
215
|
+
}): Request<ListVoicesResponse>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const text: TextResource;
|
|
219
|
+
|
|
220
|
+
const voices: VoicesResource;
|
|
221
|
+
}
|
|
222
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.texttospeech-v1beta1",
|
|
3
|
+
"version": "0.0.20220808",
|
|
4
|
+
"description": "TypeScript typings for Cloud Text-to-Speech API v1beta1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "maxim@mazurok.com",
|
|
8
|
+
"name": "Maxim Mazurok",
|
|
9
|
+
"url": "https://maxim.mazurok.com"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# TypeScript typings for Cloud Text-to-Speech API v1beta1
|
|
2
|
+
|
|
3
|
+
Synthesizes natural-sounding speech by applying powerful neural network models.
|
|
4
|
+
For detailed description please check [documentation](https://cloud.google.com/text-to-speech/).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for Cloud Text-to-Speech API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.texttospeech-v1beta1 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
You need to initialize Google API client in your code:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
gapi.load('client', () => {
|
|
20
|
+
// now we can use gapi.client
|
|
21
|
+
// ...
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then load api client wrapper:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
gapi.client.load('https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.texttospeech
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
36
|
+
gapi.client.load('texttospeech', 'v1beta1', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.texttospeech
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// declare client_id registered in Google Developers Console
|
|
46
|
+
var client_id = '',
|
|
47
|
+
scope = [
|
|
48
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
49
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
50
|
+
],
|
|
51
|
+
immediate = true;
|
|
52
|
+
// ...
|
|
53
|
+
|
|
54
|
+
gapi.auth.authorize(
|
|
55
|
+
{ client_id: client_id, scope: scope, immediate: immediate },
|
|
56
|
+
authResult => {
|
|
57
|
+
if (authResult && !authResult.error) {
|
|
58
|
+
/* handle successful authorization */
|
|
59
|
+
} else {
|
|
60
|
+
/* handle authorization error */
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
After that you can use Cloud Text-to-Speech API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
Synthesizes speech synchronously: receive results after all text input has been processed.
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.texttospeech.text.synthesize({ });
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
Returns a list of Voice supported for synthesis.
|
|
76
|
+
*/
|
|
77
|
+
await gapi.client.texttospeech.voices.list({ });
|
|
78
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.texttospeech-v1beta1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220808
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1');
|
|
12
|
+
/** now we can use gapi.client.texttospeech */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
/** Synthesizes speech synchronously: receive results after all text input has been processed. */
|
|
33
|
+
await gapi.client.texttospeech.text.synthesize({
|
|
34
|
+
}, {
|
|
35
|
+
audioConfig: {
|
|
36
|
+
audioEncoding: "Test string",
|
|
37
|
+
effectsProfileId: [
|
|
38
|
+
"Test string"
|
|
39
|
+
],
|
|
40
|
+
pitch: 42,
|
|
41
|
+
sampleRateHertz: 42,
|
|
42
|
+
speakingRate: 42,
|
|
43
|
+
volumeGainDb: 42,
|
|
44
|
+
},
|
|
45
|
+
enableTimePointing: [
|
|
46
|
+
"Test string"
|
|
47
|
+
],
|
|
48
|
+
input: {
|
|
49
|
+
ssml: "Test string",
|
|
50
|
+
text: "Test string",
|
|
51
|
+
},
|
|
52
|
+
voice: {
|
|
53
|
+
customVoice: {
|
|
54
|
+
model: "Test string",
|
|
55
|
+
reportedUsage: "Test string",
|
|
56
|
+
},
|
|
57
|
+
languageCode: "Test string",
|
|
58
|
+
name: "Test string",
|
|
59
|
+
ssmlGender: "Test string",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
/** Returns a list of Voice supported for synthesis. */
|
|
63
|
+
await gapi.client.texttospeech.voices.list({
|
|
64
|
+
languageCode: "Test string",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|