@idlebox/browser 0.0.15
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/LICENSE +21 -0
- package/README.md +1 -0
- package/config/rush-project.json +3 -0
- package/docs/package-public.d.ts +13 -0
- package/lib/_export_all_in_one_index.cjs +6 -0
- package/lib/_export_all_in_one_index.cjs.map +1 -0
- package/lib/_export_all_in_one_index.js +2 -0
- package/lib/_export_all_in_one_index.js.map +1 -0
- package/lib/globalref.cjs +3 -0
- package/lib/globalref.cjs.map +1 -0
- package/lib/globalref.js +3 -0
- package/lib/globalref.js.map +1 -0
- package/lib/storage/timeoutStorage.cjs +70 -0
- package/lib/storage/timeoutStorage.cjs.map +1 -0
- package/lib/storage/timeoutStorage.js +52 -0
- package/lib/storage/timeoutStorage.js.map +1 -0
- package/package.json +39 -0
- package/src/globalref.ts +1 -0
- package/src/storage/timeoutStorage.ts +60 -0
- package/src/tsconfig.json +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 GongT<gongteng524702837@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# browser-helpers
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class TimeoutStorage<T> {
|
|
2
|
+
private readonly storage;
|
|
3
|
+
private readonly valueKey;
|
|
4
|
+
private readonly expireKey;
|
|
5
|
+
constructor(key: string, storage?: Storage);
|
|
6
|
+
save(data: Readonly<T>, expire: string | Date): void;
|
|
7
|
+
forget(): void;
|
|
8
|
+
getExpire(): Date | null;
|
|
9
|
+
read(defaultVal: Readonly<T>): Readonly<T>;
|
|
10
|
+
read(): Readonly<T> | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { }
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeoutStorage = void 0;
|
|
4
|
+
var timeoutStorage_cjs_1 = require("./storage/timeoutStorage.cjs");
|
|
5
|
+
Object.defineProperty(exports, "TimeoutStorage", { enumerable: true, get: function () { return timeoutStorage_cjs_1.TimeoutStorage; } });
|
|
6
|
+
//# sourceMappingURL=_export_all_in_one_index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export_all_in_one_index.js","sourceRoot":"","sources":["../source/_export_all_in_one_index.ts"],"names":[],"mappings":";;;AAAA,mEAAyD;AAAhD,oHAAA,cAAc,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export_all_in_one_index.js","sourceRoot":"","sources":["../source/_export_all_in_one_index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalref.js","sourceRoot":"","sources":["../src/globalref.ts"],"names":[],"mappings":";AAAA,2BAA2B"}
|
package/lib/globalref.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalref.js","sourceRoot":"","sources":["../src/globalref.ts"],"names":[],"mappings":";AAAA,2BAA2B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeoutStorage = void 0;
|
|
4
|
+
class TimeoutStorage {
|
|
5
|
+
constructor(key, storage = localStorage) {
|
|
6
|
+
Object.defineProperty(this, "storage", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: storage
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "valueKey", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: void 0
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(this, "expireKey", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: void 0
|
|
23
|
+
});
|
|
24
|
+
this.valueKey = key + '::value';
|
|
25
|
+
this.expireKey = key + '::expire';
|
|
26
|
+
}
|
|
27
|
+
save(data, expire) {
|
|
28
|
+
if (expire instanceof Date) {
|
|
29
|
+
expire = expire.toUTCString();
|
|
30
|
+
}
|
|
31
|
+
// console.log('[%s] add [%s] %s', this.key, expire, data);
|
|
32
|
+
this.storage.setItem(this.valueKey, JSON.stringify(data));
|
|
33
|
+
this.storage.setItem(this.expireKey, expire);
|
|
34
|
+
}
|
|
35
|
+
forget() {
|
|
36
|
+
// console.log('[%s] forget.', this.key);
|
|
37
|
+
this.storage.removeItem(this.valueKey);
|
|
38
|
+
}
|
|
39
|
+
getExpire() {
|
|
40
|
+
const o = this.storage.getItem(this.expireKey);
|
|
41
|
+
if (!o || new Date(o) < new Date()) {
|
|
42
|
+
// console.log('[%s] outdate.', this.key);
|
|
43
|
+
this.forget();
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return new Date(o);
|
|
47
|
+
}
|
|
48
|
+
read(defaultVal) {
|
|
49
|
+
const json = this.storage.getItem(this.valueKey);
|
|
50
|
+
if (!json) {
|
|
51
|
+
return defaultVal;
|
|
52
|
+
}
|
|
53
|
+
const o = this.storage.getItem(this.expireKey);
|
|
54
|
+
if (!o || new Date(o) < new Date()) {
|
|
55
|
+
// console.log('[%s] outdate.', this.key);
|
|
56
|
+
this.forget();
|
|
57
|
+
return defaultVal;
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
return JSON.parse(json);
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
// console.warn('[%s] JSON %s', this.key, e.message);
|
|
64
|
+
this.forget();
|
|
65
|
+
return defaultVal;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TimeoutStorage = TimeoutStorage;
|
|
70
|
+
//# sourceMappingURL=timeoutStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeoutStorage.js","sourceRoot":"","sources":["../../src/storage/timeoutStorage.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IAI1B,YAAY,GAAW,EAAmB,UAAmB,YAAY;;;;;mBAA/B;;QAH1C;;;;;WAAkC;QAClC;;;;;WAAmC;QAGlC,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,IAAI,CAAC,IAAiB,EAAE,MAAqB;QAC5C,IAAI,MAAM,YAAY,IAAI,EAAE;YAC3B,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;SAC9B;QAED,2DAA2D;QAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM;QACL,yCAAyC;QACzC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,SAAS;QACR,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE;YACnC,0CAA0C;YAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAKD,IAAI,CAAC,UAAwB;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,EAAE;YACV,OAAO,UAAU,CAAC;SAClB;QAED,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE;YACnC,0CAA0C;YAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,UAAU,CAAC;SAClB;QAED,IAAI;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SACxB;QAAC,OAAO,CAAC,EAAE;YACX,qDAAqD;YACrD,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,UAAU,CAAC;SAClB;IACF,CAAC;CACD;AA3DD,wCA2DC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export class TimeoutStorage {
|
|
2
|
+
storage;
|
|
3
|
+
valueKey;
|
|
4
|
+
expireKey;
|
|
5
|
+
constructor(key, storage = localStorage) {
|
|
6
|
+
this.storage = storage;
|
|
7
|
+
this.valueKey = key + '::value';
|
|
8
|
+
this.expireKey = key + '::expire';
|
|
9
|
+
}
|
|
10
|
+
save(data, expire) {
|
|
11
|
+
if (expire instanceof Date) {
|
|
12
|
+
expire = expire.toUTCString();
|
|
13
|
+
}
|
|
14
|
+
// console.log('[%s] add [%s] %s', this.key, expire, data);
|
|
15
|
+
this.storage.setItem(this.valueKey, JSON.stringify(data));
|
|
16
|
+
this.storage.setItem(this.expireKey, expire);
|
|
17
|
+
}
|
|
18
|
+
forget() {
|
|
19
|
+
// console.log('[%s] forget.', this.key);
|
|
20
|
+
this.storage.removeItem(this.valueKey);
|
|
21
|
+
}
|
|
22
|
+
getExpire() {
|
|
23
|
+
const o = this.storage.getItem(this.expireKey);
|
|
24
|
+
if (!o || new Date(o) < new Date()) {
|
|
25
|
+
// console.log('[%s] outdate.', this.key);
|
|
26
|
+
this.forget();
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return new Date(o);
|
|
30
|
+
}
|
|
31
|
+
read(defaultVal) {
|
|
32
|
+
const json = this.storage.getItem(this.valueKey);
|
|
33
|
+
if (!json) {
|
|
34
|
+
return defaultVal;
|
|
35
|
+
}
|
|
36
|
+
const o = this.storage.getItem(this.expireKey);
|
|
37
|
+
if (!o || new Date(o) < new Date()) {
|
|
38
|
+
// console.log('[%s] outdate.', this.key);
|
|
39
|
+
this.forget();
|
|
40
|
+
return defaultVal;
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(json);
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
// console.warn('[%s] JSON %s', this.key, e.message);
|
|
47
|
+
this.forget();
|
|
48
|
+
return defaultVal;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=timeoutStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeoutStorage.js","sourceRoot":"","sources":["../../src/storage/timeoutStorage.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IAIgB;IAHzB,QAAQ,CAAS;IACjB,SAAS,CAAS;IAEnC,YAAY,GAAW,EAAmB,UAAmB,YAAY;QAA/B,YAAO,GAAP,OAAO,CAAwB;QACxE,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,UAAU,CAAC;IACnC,CAAC;IAED,IAAI,CAAC,IAAiB,EAAE,MAAqB;QAC5C,IAAI,MAAM,YAAY,IAAI,EAAE;YAC3B,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;SAC9B;QAED,2DAA2D;QAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM;QACL,yCAAyC;QACzC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,SAAS;QACR,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE;YACnC,0CAA0C;YAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAKD,IAAI,CAAC,UAAwB;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,EAAE;YACV,OAAO,UAAU,CAAC;SAClB;QAED,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE;YACnC,0CAA0C;YAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,UAAU,CAAC;SAClB;QAED,IAAI;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SACxB;QAAC,OAAO,CAAC,EAAE;YACX,qDAAqD;YACrD,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,UAAU,CAAC;SAClB;IACF,CAAC;CACD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"monorepo": "rush",
|
|
3
|
+
"version": "0.0.15",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"name": "@idlebox/browser",
|
|
6
|
+
"repository": "https://github.com/GongT/baobao",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"typings": "docs/package-public.d.ts",
|
|
9
|
+
"main": "./lib/_export_all_in_one_index.cjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./lib/_export_all_in_one_index.cjs",
|
|
13
|
+
"import": "./lib/_export_all_in_one_index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "build-script build",
|
|
18
|
+
"clean": "rimraf lib",
|
|
19
|
+
"distclean": "build-script distclean",
|
|
20
|
+
"prepack": "build-script rebuild",
|
|
21
|
+
"test": "build-script test",
|
|
22
|
+
"watch": "build-script watch"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@idlebox/common": "^1.1.10",
|
|
26
|
+
"source-map-support": "^0.5.20",
|
|
27
|
+
"tslib": "^2.3.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@build-script/builder": "^3.0.4",
|
|
31
|
+
"@build-script/typescript-transformer-dual-package": "^1.0.22",
|
|
32
|
+
"@build-script/export-all-in-one": "^3.0.25",
|
|
33
|
+
"@build-script/single-dog-asset": "^1.0.14",
|
|
34
|
+
"gulp": "^4.0.2",
|
|
35
|
+
"typescript": "^4.4.3",
|
|
36
|
+
"ttypescript": "^1.5.12",
|
|
37
|
+
"ts-node": "^10.2.1"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/globalref.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference lib="DOM" />
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export class TimeoutStorage<T> {
|
|
2
|
+
private readonly valueKey: string;
|
|
3
|
+
private readonly expireKey: string;
|
|
4
|
+
|
|
5
|
+
constructor(key: string, private readonly storage: Storage = localStorage) {
|
|
6
|
+
this.valueKey = key + '::value';
|
|
7
|
+
this.expireKey = key + '::expire';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
save(data: Readonly<T>, expire: string | Date) {
|
|
11
|
+
if (expire instanceof Date) {
|
|
12
|
+
expire = expire.toUTCString();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// console.log('[%s] add [%s] %s', this.key, expire, data);
|
|
16
|
+
this.storage.setItem(this.valueKey, JSON.stringify(data));
|
|
17
|
+
this.storage.setItem(this.expireKey, expire);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
forget() {
|
|
21
|
+
// console.log('[%s] forget.', this.key);
|
|
22
|
+
this.storage.removeItem(this.valueKey);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
getExpire() {
|
|
26
|
+
const o = this.storage.getItem(this.expireKey);
|
|
27
|
+
if (!o || new Date(o) < new Date()) {
|
|
28
|
+
// console.log('[%s] outdate.', this.key);
|
|
29
|
+
this.forget();
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return new Date(o);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
read(defaultVal: Readonly<T>): Readonly<T>;
|
|
37
|
+
read(): Readonly<T> | undefined;
|
|
38
|
+
|
|
39
|
+
read(defaultVal?: Readonly<T>): Readonly<T> | undefined {
|
|
40
|
+
const json = this.storage.getItem(this.valueKey);
|
|
41
|
+
if (!json) {
|
|
42
|
+
return defaultVal;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const o = this.storage.getItem(this.expireKey);
|
|
46
|
+
if (!o || new Date(o) < new Date()) {
|
|
47
|
+
// console.log('[%s] outdate.', this.key);
|
|
48
|
+
this.forget();
|
|
49
|
+
return defaultVal;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
return JSON.parse(json);
|
|
54
|
+
} catch (e) {
|
|
55
|
+
// console.warn('[%s] JSON %s', this.key, e.message);
|
|
56
|
+
this.forget();
|
|
57
|
+
return defaultVal;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../node_modules/@build-script/single-dog-asset/package/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../lib",
|
|
5
|
+
"rootDir": ".",
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"declarationMap": false,
|
|
8
|
+
"lib": ["DOM", "ESNext", "ESNext.Array", "ESNext.AsyncIterable", "ESNext.Symbol"],
|
|
9
|
+
"types": []
|
|
10
|
+
}
|
|
11
|
+
}
|