@soundscript/cli-darwin-arm64 0.1.0

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.
Files changed (85) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +3 -0
  3. package/bin/soundscript +0 -0
  4. package/package.json +26 -0
  5. package/src/bundled/sound-libs/lib.decorators.d.ts +385 -0
  6. package/src/bundled/sound-libs/lib.decorators.legacy.d.ts +22 -0
  7. package/src/bundled/sound-libs/lib.dom.asynciterable.d.ts +42 -0
  8. package/src/bundled/sound-libs/lib.dom.d.ts +39440 -0
  9. package/src/bundled/sound-libs/lib.es2015.collection.d.ts +149 -0
  10. package/src/bundled/sound-libs/lib.es2015.core.d.ts +657 -0
  11. package/src/bundled/sound-libs/lib.es2015.d.ts +28 -0
  12. package/src/bundled/sound-libs/lib.es2015.generator.d.ts +77 -0
  13. package/src/bundled/sound-libs/lib.es2015.iterable.d.ts +616 -0
  14. package/src/bundled/sound-libs/lib.es2015.promise.d.ts +80 -0
  15. package/src/bundled/sound-libs/lib.es2015.proxy.d.ts +128 -0
  16. package/src/bundled/sound-libs/lib.es2015.reflect.d.ts +144 -0
  17. package/src/bundled/sound-libs/lib.es2015.symbol.d.ts +46 -0
  18. package/src/bundled/sound-libs/lib.es2015.symbol.wellknown.d.ts +170 -0
  19. package/src/bundled/sound-libs/lib.es2016.array.include.d.ts +116 -0
  20. package/src/bundled/sound-libs/lib.es2016.d.ts +21 -0
  21. package/src/bundled/sound-libs/lib.es2017.arraybuffer.d.ts +21 -0
  22. package/src/bundled/sound-libs/lib.es2017.d.ts +26 -0
  23. package/src/bundled/sound-libs/lib.es2017.date.d.ts +31 -0
  24. package/src/bundled/sound-libs/lib.es2017.object.d.ts +49 -0
  25. package/src/bundled/sound-libs/lib.es2017.string.d.ts +45 -0
  26. package/src/bundled/sound-libs/lib.es2017.typedarrays.d.ts +53 -0
  27. package/src/bundled/sound-libs/lib.es2018.asyncgenerator.d.ts +77 -0
  28. package/src/bundled/sound-libs/lib.es2018.asynciterable.d.ts +57 -0
  29. package/src/bundled/sound-libs/lib.es2018.d.ts +24 -0
  30. package/src/bundled/sound-libs/lib.es2018.promise.d.ts +30 -0
  31. package/src/bundled/sound-libs/lib.es2018.regexp.d.ts +37 -0
  32. package/src/bundled/sound-libs/lib.es2019.array.d.ts +79 -0
  33. package/src/bundled/sound-libs/lib.es2019.d.ts +24 -0
  34. package/src/bundled/sound-libs/lib.es2019.object.d.ts +47 -0
  35. package/src/bundled/sound-libs/lib.es2019.string.d.ts +37 -0
  36. package/src/bundled/sound-libs/lib.es2019.symbol.d.ts +24 -0
  37. package/src/bundled/sound-libs/lib.es2020.bigint.d.ts +765 -0
  38. package/src/bundled/sound-libs/lib.es2020.d.ts +27 -0
  39. package/src/bundled/sound-libs/lib.es2020.date.d.ts +42 -0
  40. package/src/bundled/sound-libs/lib.es2020.number.d.ts +28 -0
  41. package/src/bundled/sound-libs/lib.es2020.promise.d.ts +49 -0
  42. package/src/bundled/sound-libs/lib.es2020.string.d.ts +44 -0
  43. package/src/bundled/sound-libs/lib.es2020.symbol.wellknown.d.ts +41 -0
  44. package/src/bundled/sound-libs/lib.es2021.d.ts +23 -0
  45. package/src/bundled/sound-libs/lib.es2021.promise.d.ts +48 -0
  46. package/src/bundled/sound-libs/lib.es2021.string.d.ts +33 -0
  47. package/src/bundled/sound-libs/lib.es2021.weakref.d.ts +78 -0
  48. package/src/bundled/sound-libs/lib.es2022.array.d.ts +121 -0
  49. package/src/bundled/sound-libs/lib.es2022.d.ts +25 -0
  50. package/src/bundled/sound-libs/lib.es2022.error.d.ts +75 -0
  51. package/src/bundled/sound-libs/lib.es2022.object.d.ts +26 -0
  52. package/src/bundled/sound-libs/lib.es2022.regexp.d.ts +39 -0
  53. package/src/bundled/sound-libs/lib.es2022.string.d.ts +25 -0
  54. package/src/bundled/sound-libs/lib.es2023.array.d.ts +924 -0
  55. package/src/bundled/sound-libs/lib.es2023.collection.d.ts +21 -0
  56. package/src/bundled/sound-libs/lib.es2023.d.ts +22 -0
  57. package/src/bundled/sound-libs/lib.es2024.arraybuffer.d.ts +65 -0
  58. package/src/bundled/sound-libs/lib.es2024.collection.d.ts +29 -0
  59. package/src/bundled/sound-libs/lib.es2024.d.ts +26 -0
  60. package/src/bundled/sound-libs/lib.es2024.object.d.ts +33 -0
  61. package/src/bundled/sound-libs/lib.es2024.promise.d.ts +35 -0
  62. package/src/bundled/sound-libs/lib.es2024.regexp.d.ts +25 -0
  63. package/src/bundled/sound-libs/lib.es2024.string.d.ts +29 -0
  64. package/src/bundled/sound-libs/lib.es5.d.ts +4924 -0
  65. package/src/stdlib/async.d.ts +81 -0
  66. package/src/stdlib/codec.d.ts +31 -0
  67. package/src/stdlib/compare.d.ts +28 -0
  68. package/src/stdlib/component.d.ts +40 -0
  69. package/src/stdlib/css.d.ts +16 -0
  70. package/src/stdlib/debug.d.ts +2 -0
  71. package/src/stdlib/decode.d.ts +84 -0
  72. package/src/stdlib/derive.d.ts +6 -0
  73. package/src/stdlib/encode.d.ts +98 -0
  74. package/src/stdlib/failures.d.ts +23 -0
  75. package/src/stdlib/graphql.d.ts +16 -0
  76. package/src/stdlib/hash.d.ts +34 -0
  77. package/src/stdlib/hkt.d.ts +40 -0
  78. package/src/stdlib/index.d.ts +9 -0
  79. package/src/stdlib/json.d.ts +98 -0
  80. package/src/stdlib/match.d.ts +11 -0
  81. package/src/stdlib/numerics.d.ts +45 -0
  82. package/src/stdlib/result.d.ts +52 -0
  83. package/src/stdlib/sql.d.ts +22 -0
  84. package/src/stdlib/thunk.d.ts +2 -0
  85. package/src/stdlib/typeclasses.d.ts +57 -0
@@ -0,0 +1,21 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2015" />
20
+ /// <reference lib="es2016.array.include" />
21
+ /// <reference lib="es2016.intl" />
@@ -0,0 +1,21 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface ArrayBufferConstructor {
20
+ new (): ArrayBuffer;
21
+ }
@@ -0,0 +1,26 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2016" />
20
+ /// <reference lib="es2017.arraybuffer" />
21
+ /// <reference lib="es2017.date" />
22
+ /// <reference lib="es2017.intl" />
23
+ /// <reference lib="es2017.object" />
24
+ /// <reference lib="es2017.sharedmemory" />
25
+ /// <reference lib="es2017.string" />
26
+ /// <reference lib="es2017.typedarrays" />
@@ -0,0 +1,31 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface DateConstructor {
20
+ /**
21
+ * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
22
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
23
+ * @param monthIndex The month as a number between 0 and 11 (January to December).
24
+ * @param date The date as a number between 1 and 31.
25
+ * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
26
+ * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
27
+ * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
28
+ * @param ms A number from 0 to 999 that specifies the milliseconds.
29
+ */
30
+ UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
31
+ }
@@ -0,0 +1,49 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface ObjectConstructor {
20
+ /**
21
+ * Returns an array of values of the enumerable own properties of an object
22
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
23
+ */
24
+ values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];
25
+
26
+ /**
27
+ * Returns an array of values of the enumerable own properties of an object
28
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
29
+ */
30
+ values(o: {}): unknown[];
31
+
32
+ /**
33
+ * Returns an array of key/values of the enumerable own properties of an object
34
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
35
+ */
36
+ entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];
37
+
38
+ /**
39
+ * Returns an array of key/values of the enumerable own properties of an object
40
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
41
+ */
42
+ entries(o: {}): [string, unknown][];
43
+
44
+ /**
45
+ * Returns an object containing all own property descriptors of an object
46
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
47
+ */
48
+ getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };
49
+ }
@@ -0,0 +1,45 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface String {
20
+ /**
21
+ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
22
+ * The padding is applied from the start (left) of the current string.
23
+ *
24
+ * @param maxLength The length of the resulting string once the current string has been padded.
25
+ * If this parameter is smaller than the current string's length, the current string will be returned as it is.
26
+ *
27
+ * @param fillString The string to pad the current string with.
28
+ * If this string is too long, it will be truncated and the left-most part will be applied.
29
+ * The default value for this parameter is " " (U+0020).
30
+ */
31
+ padStart(maxLength: number, fillString?: string): string;
32
+
33
+ /**
34
+ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
35
+ * The padding is applied from the end (right) of the current string.
36
+ *
37
+ * @param maxLength The length of the resulting string once the current string has been padded.
38
+ * If this parameter is smaller than the current string's length, the current string will be returned as it is.
39
+ *
40
+ * @param fillString The string to pad the current string with.
41
+ * If this string is too long, it will be truncated and the left-most part will be applied.
42
+ * The default value for this parameter is " " (U+0020).
43
+ */
44
+ padEnd(maxLength: number, fillString?: string): string;
45
+ }
@@ -0,0 +1,53 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface Int8ArrayConstructor {
20
+ new (): Int8Array<ArrayBuffer>;
21
+ }
22
+
23
+ interface Uint8ArrayConstructor {
24
+ new (): Uint8Array<ArrayBuffer>;
25
+ }
26
+
27
+ interface Uint8ClampedArrayConstructor {
28
+ new (): Uint8ClampedArray<ArrayBuffer>;
29
+ }
30
+
31
+ interface Int16ArrayConstructor {
32
+ new (): Int16Array<ArrayBuffer>;
33
+ }
34
+
35
+ interface Uint16ArrayConstructor {
36
+ new (): Uint16Array<ArrayBuffer>;
37
+ }
38
+
39
+ interface Int32ArrayConstructor {
40
+ new (): Int32Array<ArrayBuffer>;
41
+ }
42
+
43
+ interface Uint32ArrayConstructor {
44
+ new (): Uint32Array<ArrayBuffer>;
45
+ }
46
+
47
+ interface Float32ArrayConstructor {
48
+ new (): Float32Array<ArrayBuffer>;
49
+ }
50
+
51
+ interface Float64ArrayConstructor {
52
+ new (): Float64Array<ArrayBuffer>;
53
+ }
@@ -0,0 +1,77 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2018.asynciterable" />
20
+
21
+ interface AsyncGenerator<T = unknown, TReturn = unknown, TNext = unknown> extends AsyncIteratorObject<T, TReturn, TNext> {
22
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
23
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
24
+ return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
25
+ throw(e: unknown): Promise<IteratorResult<T, TReturn>>;
26
+ [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
27
+ }
28
+
29
+ interface AsyncGeneratorFunction {
30
+ /**
31
+ * Creates a new AsyncGenerator object.
32
+ * @param args A list of arguments the function accepts.
33
+ */
34
+ new (...args: unknown[]): AsyncGenerator;
35
+ /**
36
+ * Creates a new AsyncGenerator object.
37
+ * @param args A list of arguments the function accepts.
38
+ */
39
+ (...args: unknown[]): AsyncGenerator;
40
+ /**
41
+ * The length of the arguments.
42
+ */
43
+ readonly length: number;
44
+ /**
45
+ * Returns the name of the function.
46
+ */
47
+ readonly name: string;
48
+ /**
49
+ * A reference to the prototype.
50
+ */
51
+ readonly prototype: AsyncGenerator;
52
+ }
53
+
54
+ interface AsyncGeneratorFunctionConstructor {
55
+ /**
56
+ * Creates a new AsyncGenerator function.
57
+ * @param args A list of arguments the function accepts.
58
+ */
59
+ new (...args: string[]): AsyncGeneratorFunction;
60
+ /**
61
+ * Creates a new AsyncGenerator function.
62
+ * @param args A list of arguments the function accepts.
63
+ */
64
+ (...args: string[]): AsyncGeneratorFunction;
65
+ /**
66
+ * The length of the arguments.
67
+ */
68
+ readonly length: number;
69
+ /**
70
+ * Returns the name of the function.
71
+ */
72
+ readonly name: string;
73
+ /**
74
+ * A reference to the prototype.
75
+ */
76
+ readonly prototype: AsyncGeneratorFunction;
77
+ }
@@ -0,0 +1,57 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2015.symbol" />
20
+ /// <reference lib="es2015.iterable" />
21
+
22
+ interface SymbolConstructor {
23
+ /**
24
+ * A method that returns the default async iterator for an object. Called by the semantics of
25
+ * the for-await-of statement.
26
+ */
27
+ readonly asyncIterator: unique symbol;
28
+ }
29
+
30
+ // #[variance(T: out, TReturn: inout, TNext: in)]
31
+ interface AsyncIterator<T, TReturn = unknown, TNext = unknown> {
32
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
33
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
34
+ return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
35
+ throw?(e?: unknown): Promise<IteratorResult<T, TReturn>>;
36
+ }
37
+
38
+ // #[variance(T: out, TReturn: out, TNext: in)]
39
+ interface AsyncIterable<T, TReturn = unknown, TNext = unknown> {
40
+ [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
41
+ }
42
+
43
+ /**
44
+ * Describes a user-defined {@link AsyncIterator} that is also async iterable.
45
+ */
46
+ // #[variance(T: out, TReturn: inout, TNext: in)]
47
+ interface AsyncIterableIterator<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
48
+ [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
49
+ }
50
+
51
+ /**
52
+ * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`.
53
+ */
54
+ // #[variance(T: out, TReturn: inout, TNext: in)]
55
+ interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
56
+ [Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
57
+ }
@@ -0,0 +1,24 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2017" />
20
+ /// <reference lib="es2018.asynciterable" />
21
+ /// <reference lib="es2018.asyncgenerator" />
22
+ /// <reference lib="es2018.promise" />
23
+ /// <reference lib="es2018.regexp" />
24
+ /// <reference lib="es2018.intl" />
@@ -0,0 +1,30 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /**
20
+ * Represents the completion of an asynchronous operation
21
+ */
22
+ interface Promise<T> {
23
+ /**
24
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
25
+ * resolved value cannot be modified from the callback.
26
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
27
+ * @returns A Promise for the completion of the callback.
28
+ */
29
+ finally(onfinally?: (() => void) | undefined | null): Promise<T>;
30
+ }
@@ -0,0 +1,37 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface RegExpMatchArray {
20
+ groups?: BareObject & {
21
+ [key: string]: string | undefined;
22
+ };
23
+ }
24
+
25
+ interface RegExpExecArray {
26
+ groups?: BareObject & {
27
+ [key: string]: string | undefined;
28
+ };
29
+ }
30
+
31
+ interface RegExp {
32
+ /**
33
+ * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
34
+ * Default is false. Read-only.
35
+ */
36
+ readonly dotAll: boolean;
37
+ }
@@ -0,0 +1,79 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ type FlatArray<Arr, Depth extends number> = {
20
+ done: Arr;
21
+ recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
22
+ : Arr;
23
+ }[Depth extends -1 ? "done" : "recur"];
24
+
25
+ interface ReadonlyArray<T> {
26
+ /**
27
+ * Calls a defined callback function on each element of an array. Then, flattens the result into
28
+ * a new array.
29
+ * This is identical to a map followed by flat with depth 1.
30
+ *
31
+ * @param callback A function that accepts up to three arguments. The flatMap method calls the
32
+ * callback function one time for each element in the array.
33
+ * @param thisArg An object to which the this keyword can refer in the callback function. If
34
+ * thisArg is omitted, undefined is used as the this value.
35
+ */
36
+ flatMap<U, This = undefined>(
37
+ callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
38
+ thisArg?: This,
39
+ ): U[];
40
+
41
+ /**
42
+ * Returns a new array with all sub-array elements concatenated into it recursively up to the
43
+ * specified depth.
44
+ *
45
+ * @param depth The maximum recursion depth
46
+ */
47
+ flat<A, D extends number = 1>(
48
+ this: A,
49
+ depth?: D,
50
+ ): FlatArray<A, D>[];
51
+ }
52
+
53
+ interface Array<T> {
54
+ /**
55
+ * Calls a defined callback function on each element of an array. Then, flattens the result into
56
+ * a new array.
57
+ * This is identical to a map followed by flat with depth 1.
58
+ *
59
+ * @param callback A function that accepts up to three arguments. The flatMap method calls the
60
+ * callback function one time for each element in the array.
61
+ * @param thisArg An object to which the this keyword can refer in the callback function. If
62
+ * thisArg is omitted, undefined is used as the this value.
63
+ */
64
+ flatMap<U, This = undefined>(
65
+ callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
66
+ thisArg?: This,
67
+ ): U[];
68
+
69
+ /**
70
+ * Returns a new array with all sub-array elements concatenated into it recursively up to the
71
+ * specified depth.
72
+ *
73
+ * @param depth The maximum recursion depth
74
+ */
75
+ flat<A, D extends number = 1>(
76
+ this: A,
77
+ depth?: D,
78
+ ): FlatArray<A, D>[];
79
+ }
@@ -0,0 +1,24 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2018" />
20
+ /// <reference lib="es2019.array" />
21
+ /// <reference lib="es2019.object" />
22
+ /// <reference lib="es2019.string" />
23
+ /// <reference lib="es2019.symbol" />
24
+ /// <reference lib="es2019.intl" />
@@ -0,0 +1,47 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2015.iterable" />
20
+
21
+ type OrdinaryObjectCoercibleKey =
22
+ | string
23
+ | number
24
+ | boolean
25
+ | null
26
+ | undefined
27
+ | readonly OrdinaryObjectCoercibleKey[];
28
+
29
+ interface ObjectConstructor {
30
+ /**
31
+ * Returns an object created by key-value entries for properties and methods
32
+ * @param entries An iterable object that contains key-value entries for properties and methods.
33
+ */
34
+ fromEntries<T = unknown>(entries: readonly (readonly [OrdinaryObjectCoercibleKey, T])[]): { [k: string]: T; };
35
+
36
+ /**
37
+ * Returns an object created by key-value entries for properties and methods
38
+ * @param entries An iterable object that contains key-value entries for properties and methods.
39
+ */
40
+ fromEntries<T = unknown>(entries: Iterable<readonly [OrdinaryObjectCoercibleKey, T]>): { [k: string]: T; };
41
+
42
+ /**
43
+ * Returns an object created by key-value entries for properties and methods
44
+ * @param entries An iterable object that contains key-value entries for properties and methods.
45
+ */
46
+ fromEntries(entries: Iterable<readonly unknown[]>): unknown;
47
+ }