@maxim_mazurok/gapi.client.checks-v1alpha 0.0.20230619
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 +307 -0
- package/package.json +20 -0
- package/readme.md +73 -0
- package/tests.ts +43 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Checks API v1alpha 0.0 */
|
|
2
|
+
// Project: https://developers.google.com/checks
|
|
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
|
+
|
|
8
|
+
// IMPORTANT
|
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
|
+
// Generated from: https://checks.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
+
// Revision: 20230619
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Checks API v1alpha */
|
|
18
|
+
function load(urlOrObject: "https://checks.googleapis.com/$discovery/rest?version=v1alpha"): Promise<void>;
|
|
19
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
20
|
+
function load(name: "checks", version: "v1alpha"): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: "checks", version: "v1alpha", callback: () => any): void;
|
|
23
|
+
|
|
24
|
+
namespace checks {
|
|
25
|
+
interface AnalyzePrivacyPolicyRequest {
|
|
26
|
+
/** Web page raw HTML content for the privacy policy page to be analyzed. Useful when the client wants to analyze a privacy policy already fetched. */
|
|
27
|
+
privacyPolicyPageContent?:
|
|
28
|
+
string;
|
|
29
|
+
/** URL for the privacy policy page to be analyzed. https://linter.aip.dev/140/uri (Use `uri` instead of `url` in field name) */
|
|
30
|
+
privacyPolicyUri?:
|
|
31
|
+
string;
|
|
32
|
+
}
|
|
33
|
+
interface AnalyzePrivacyPolicyResponse {
|
|
34
|
+
/** List of all data types in the privacy policy. */
|
|
35
|
+
dataPurposeAnnotations?:
|
|
36
|
+
PolicyPurposeOfUseAnnotation[];
|
|
37
|
+
/** List of all data types in the privacy policy. */
|
|
38
|
+
dataTypeAnnotations?:
|
|
39
|
+
PolicyDataTypeAnnotation[];
|
|
40
|
+
/** HTML content for the privacy policy page. */
|
|
41
|
+
htmlContent?:
|
|
42
|
+
string;
|
|
43
|
+
/** Information about the date when the privacy policy was last updated. */
|
|
44
|
+
lastUpdatedDateInfo?:
|
|
45
|
+
LastUpdatedDate;
|
|
46
|
+
/** List of all sections in the privacy policy. */
|
|
47
|
+
sectionAnnotations?:
|
|
48
|
+
PolicySectionAnnotation[];
|
|
49
|
+
}
|
|
50
|
+
interface Date {
|
|
51
|
+
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
52
|
+
day?:
|
|
53
|
+
number;
|
|
54
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
55
|
+
month?:
|
|
56
|
+
number;
|
|
57
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
58
|
+
year?:
|
|
59
|
+
number;
|
|
60
|
+
}
|
|
61
|
+
interface LastUpdatedDate {
|
|
62
|
+
/** Byte offsets for the end of the date text inside the full text. */
|
|
63
|
+
endOffset?:
|
|
64
|
+
string;
|
|
65
|
+
/** Date when the privacy policy was last updated. */
|
|
66
|
+
lastUpdatedDate?:
|
|
67
|
+
Date;
|
|
68
|
+
/** Byte offsets for the start of the date text inside the full text. */
|
|
69
|
+
startOffset?:
|
|
70
|
+
string;
|
|
71
|
+
/** The bytes of actual text content in the section. NOTE: - This will correspond to the whole sentence that includes the date. - This field might contain HTML and it is not sanitized. */
|
|
72
|
+
textContent?:
|
|
73
|
+
string;
|
|
74
|
+
}
|
|
75
|
+
interface Operation {
|
|
76
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
77
|
+
done?:
|
|
78
|
+
boolean;
|
|
79
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
80
|
+
error?:
|
|
81
|
+
Status;
|
|
82
|
+
/**
|
|
83
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
84
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
85
|
+
*/
|
|
86
|
+
metadata?:
|
|
87
|
+
{ [P in string]: any };
|
|
88
|
+
/**
|
|
89
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
90
|
+
* with `operations/{unique_id}`.
|
|
91
|
+
*/
|
|
92
|
+
name?:
|
|
93
|
+
string;
|
|
94
|
+
/**
|
|
95
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
96
|
+
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
97
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
98
|
+
*/
|
|
99
|
+
response?:
|
|
100
|
+
{ [P in string]: any };
|
|
101
|
+
}
|
|
102
|
+
interface PolicyDataTypeAnnotation {
|
|
103
|
+
/** Type of the data mentioned in the policy. */
|
|
104
|
+
dataType?:
|
|
105
|
+
string;
|
|
106
|
+
/** Byte offsets for the end of the data type sentence inside the full text. */
|
|
107
|
+
endOffset?:
|
|
108
|
+
string;
|
|
109
|
+
/** Score given by the model representing how confident it was regarding this `text_content` being of `data_type`. */
|
|
110
|
+
score?:
|
|
111
|
+
number;
|
|
112
|
+
/** Byte offsets for the start of the data type sentence inside the full text. */
|
|
113
|
+
startOffset?:
|
|
114
|
+
string;
|
|
115
|
+
/**
|
|
116
|
+
* Actual text content in the section. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract
|
|
117
|
+
* go/safehtmltypecontracts#safehtml.
|
|
118
|
+
*/
|
|
119
|
+
textContent?:
|
|
120
|
+
string;
|
|
121
|
+
}
|
|
122
|
+
interface PolicyPurposeOfUseAnnotation {
|
|
123
|
+
/** Byte offsets for the end of the purpose of use sentence inside the full text. */
|
|
124
|
+
endOffset?:
|
|
125
|
+
string;
|
|
126
|
+
/** Purpose of use mentioned in the policy. */
|
|
127
|
+
purposeOfUse?:
|
|
128
|
+
string;
|
|
129
|
+
/** Score given by the model representing how confident it was regarding this `text_content` being of `purpose_of_use`. */
|
|
130
|
+
score?:
|
|
131
|
+
number;
|
|
132
|
+
/** Byte offsets for the start of the purpose of use sentence inside the full text. */
|
|
133
|
+
startOffset?:
|
|
134
|
+
string;
|
|
135
|
+
/**
|
|
136
|
+
* The bytes of actual text content in the sentence that mentions the purpose of use. This makes it much easier to consume the information. NOTE: This field might contain HTML and does
|
|
137
|
+
* not guarantee a SafeHtml security contract go/safehtmltypecontracts#safehtml.
|
|
138
|
+
*/
|
|
139
|
+
textContent?:
|
|
140
|
+
string;
|
|
141
|
+
}
|
|
142
|
+
interface PolicySectionAnnotation {
|
|
143
|
+
/** Byte offsets for the end of the section inside the full text. */
|
|
144
|
+
endOffset?:
|
|
145
|
+
string;
|
|
146
|
+
/** Score given by the model representing how confident it was regarding this `text_content` being of `section_type`. */
|
|
147
|
+
score?:
|
|
148
|
+
number;
|
|
149
|
+
/** Type of the high-level category in the policy. */
|
|
150
|
+
sectionType?:
|
|
151
|
+
string;
|
|
152
|
+
/** Byte offsets for the start of the section inside the full text. */
|
|
153
|
+
startOffset?:
|
|
154
|
+
string;
|
|
155
|
+
/**
|
|
156
|
+
* Actual text content in the section. This makes it much easier to consume the information. NOTE: This field might contain HTML and does not guarantee a SafeHtml security contract
|
|
157
|
+
* go/safehtmltypecontracts#safehtml.
|
|
158
|
+
*/
|
|
159
|
+
textContent?:
|
|
160
|
+
string;
|
|
161
|
+
}
|
|
162
|
+
interface Status {
|
|
163
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
164
|
+
code?:
|
|
165
|
+
number;
|
|
166
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
167
|
+
details?:
|
|
168
|
+
Array<{ [P in string]: any }>;
|
|
169
|
+
/**
|
|
170
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
171
|
+
* client.
|
|
172
|
+
*/
|
|
173
|
+
message?:
|
|
174
|
+
string;
|
|
175
|
+
}
|
|
176
|
+
interface OperationsResource {
|
|
177
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
178
|
+
get(request?: {
|
|
179
|
+
/** V1 error format. */
|
|
180
|
+
"$.xgafv"?:
|
|
181
|
+
string;
|
|
182
|
+
/** OAuth access token. */
|
|
183
|
+
access_token?:
|
|
184
|
+
string;
|
|
185
|
+
/** Data format for response. */
|
|
186
|
+
alt?:
|
|
187
|
+
string;
|
|
188
|
+
/** JSONP */
|
|
189
|
+
callback?:
|
|
190
|
+
string;
|
|
191
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
192
|
+
fields?:
|
|
193
|
+
string;
|
|
194
|
+
/** 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. */
|
|
195
|
+
key?:
|
|
196
|
+
string;
|
|
197
|
+
/** The name of the operation resource. */
|
|
198
|
+
name:
|
|
199
|
+
string;
|
|
200
|
+
/** OAuth 2.0 token for the current user. */
|
|
201
|
+
oauth_token?:
|
|
202
|
+
string;
|
|
203
|
+
/** Returns response with indentations and line breaks. */
|
|
204
|
+
prettyPrint?:
|
|
205
|
+
boolean;
|
|
206
|
+
/** 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. */
|
|
207
|
+
quotaUser?:
|
|
208
|
+
string;
|
|
209
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
210
|
+
upload_protocol?:
|
|
211
|
+
string;
|
|
212
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
213
|
+
uploadType?:
|
|
214
|
+
string;
|
|
215
|
+
}): Request<Operation>;
|
|
216
|
+
}
|
|
217
|
+
interface AppsResource {
|
|
218
|
+
operations:
|
|
219
|
+
OperationsResource;
|
|
220
|
+
}
|
|
221
|
+
interface AccountsResource {
|
|
222
|
+
apps:
|
|
223
|
+
AppsResource;
|
|
224
|
+
}
|
|
225
|
+
interface PrivacypolicyResource {
|
|
226
|
+
/** Analyzes the privacy policy of the given policy URL or content. */
|
|
227
|
+
analyze(request: {
|
|
228
|
+
/** V1 error format. */
|
|
229
|
+
"$.xgafv"?:
|
|
230
|
+
string;
|
|
231
|
+
/** OAuth access token. */
|
|
232
|
+
access_token?:
|
|
233
|
+
string;
|
|
234
|
+
/** Data format for response. */
|
|
235
|
+
alt?:
|
|
236
|
+
string;
|
|
237
|
+
/** JSONP */
|
|
238
|
+
callback?:
|
|
239
|
+
string;
|
|
240
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
241
|
+
fields?:
|
|
242
|
+
string;
|
|
243
|
+
/** 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. */
|
|
244
|
+
key?:
|
|
245
|
+
string;
|
|
246
|
+
/** OAuth 2.0 token for the current user. */
|
|
247
|
+
oauth_token?:
|
|
248
|
+
string;
|
|
249
|
+
/** Returns response with indentations and line breaks. */
|
|
250
|
+
prettyPrint?:
|
|
251
|
+
boolean;
|
|
252
|
+
/** 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. */
|
|
253
|
+
quotaUser?:
|
|
254
|
+
string;
|
|
255
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
256
|
+
upload_protocol?:
|
|
257
|
+
string;
|
|
258
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
259
|
+
uploadType?:
|
|
260
|
+
string;
|
|
261
|
+
/** Request body */
|
|
262
|
+
resource:
|
|
263
|
+
AnalyzePrivacyPolicyRequest;
|
|
264
|
+
}): Request<AnalyzePrivacyPolicyResponse>;
|
|
265
|
+
analyze(request: {
|
|
266
|
+
/** V1 error format. */
|
|
267
|
+
"$.xgafv"?:
|
|
268
|
+
string;
|
|
269
|
+
/** OAuth access token. */
|
|
270
|
+
access_token?:
|
|
271
|
+
string;
|
|
272
|
+
/** Data format for response. */
|
|
273
|
+
alt?:
|
|
274
|
+
string;
|
|
275
|
+
/** JSONP */
|
|
276
|
+
callback?:
|
|
277
|
+
string;
|
|
278
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
279
|
+
fields?:
|
|
280
|
+
string;
|
|
281
|
+
/** 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. */
|
|
282
|
+
key?:
|
|
283
|
+
string;
|
|
284
|
+
/** OAuth 2.0 token for the current user. */
|
|
285
|
+
oauth_token?:
|
|
286
|
+
string;
|
|
287
|
+
/** Returns response with indentations and line breaks. */
|
|
288
|
+
prettyPrint?:
|
|
289
|
+
boolean;
|
|
290
|
+
/** 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. */
|
|
291
|
+
quotaUser?:
|
|
292
|
+
string;
|
|
293
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
294
|
+
upload_protocol?:
|
|
295
|
+
string;
|
|
296
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
297
|
+
uploadType?:
|
|
298
|
+
string;
|
|
299
|
+
},
|
|
300
|
+
body: AnalyzePrivacyPolicyRequest): Request<AnalyzePrivacyPolicyResponse>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const accounts: AccountsResource;
|
|
304
|
+
|
|
305
|
+
const privacypolicy: PrivacypolicyResource;
|
|
306
|
+
}
|
|
307
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.checks-v1alpha",
|
|
3
|
+
"version": "0.0.20230619",
|
|
4
|
+
"description": "TypeScript typings for Checks API v1alpha",
|
|
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,73 @@
|
|
|
1
|
+
# TypeScript typings for Checks API v1alpha
|
|
2
|
+
|
|
3
|
+
The Checks API contains powerful and easy-to-use privacy and compliance APIs that interact with the Checks product and its underlying technology.
|
|
4
|
+
For detailed description please check [documentation](https://developers.google.com/checks).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for Checks API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.checks-v1alpha --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://checks.googleapis.com/$discovery/rest?version=v1alpha', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.checks
|
|
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('checks', 'v1alpha', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.checks
|
|
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
|
+
// Test scope for access to the Zoo service
|
|
49
|
+
'https://www.googleapis.com/auth/xapi.zoo',
|
|
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 Checks API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
Analyzes the privacy policy of the given policy URL or content.
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.checks.privacypolicy.analyze({ });
|
|
73
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.checks-v1alpha 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: 20230619
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://checks.googleapis.com/$discovery/rest?version=v1alpha');
|
|
12
|
+
/** now we can use gapi.client.checks */
|
|
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
|
+
/** Test scope for access to the Zoo service */
|
|
19
|
+
'https://www.googleapis.com/auth/xapi.zoo',
|
|
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
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
33
|
+
await gapi.client.checks.accounts.apps.operations.get({
|
|
34
|
+
name: "Test string",
|
|
35
|
+
});
|
|
36
|
+
/** Analyzes the privacy policy of the given policy URL or content. */
|
|
37
|
+
await gapi.client.checks.privacypolicy.analyze({
|
|
38
|
+
}, {
|
|
39
|
+
privacyPolicyPageContent: "Test string",
|
|
40
|
+
privacyPolicyUri: "Test string",
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
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
|
+
}
|