@tsc-rs/linux-arm64 0.0.0-stage → 0.3.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.
- package/LICENSE +21 -0
- package/NOTICE.txt +599 -0
- package/README.md +2 -2
- package/lib/lib.d.ts +20 -0
- package/lib/lib.decorators.d.ts +382 -0
- package/lib/lib.decorators.legacy.d.ts +20 -0
- package/lib/lib.dom.asynciterable.d.ts +18 -0
- package/lib/lib.dom.d.ts +45125 -0
- package/lib/lib.dom.iterable.d.ts +18 -0
- package/lib/lib.es2015.collection.d.ts +159 -0
- package/lib/lib.es2015.core.d.ts +595 -0
- package/lib/lib.es2015.d.ts +26 -0
- package/lib/lib.es2015.generator.d.ts +75 -0
- package/lib/lib.es2015.iterable.d.ts +603 -0
- package/lib/lib.es2015.promise.d.ts +79 -0
- package/lib/lib.es2015.proxy.d.ts +126 -0
- package/lib/lib.es2015.reflect.d.ts +142 -0
- package/lib/lib.es2015.symbol.d.ts +44 -0
- package/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/lib/lib.es2016.array.include.d.ts +114 -0
- package/lib/lib.es2016.d.ts +19 -0
- package/lib/lib.es2016.full.d.ts +21 -0
- package/lib/lib.es2016.intl.d.ts +29 -0
- package/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/lib/lib.es2017.d.ts +24 -0
- package/lib/lib.es2017.date.d.ts +29 -0
- package/lib/lib.es2017.full.d.ts +21 -0
- package/lib/lib.es2017.intl.d.ts +42 -0
- package/lib/lib.es2017.object.d.ts +47 -0
- package/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/lib/lib.es2017.string.d.ts +47 -0
- package/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/lib/lib.es2018.d.ts +22 -0
- package/lib/lib.es2018.full.d.ts +22 -0
- package/lib/lib.es2018.intl.d.ts +80 -0
- package/lib/lib.es2018.promise.d.ts +28 -0
- package/lib/lib.es2018.regexp.d.ts +35 -0
- package/lib/lib.es2019.array.d.ts +77 -0
- package/lib/lib.es2019.d.ts +22 -0
- package/lib/lib.es2019.full.d.ts +22 -0
- package/lib/lib.es2019.intl.d.ts +21 -0
- package/lib/lib.es2019.object.d.ts +31 -0
- package/lib/lib.es2019.string.d.ts +35 -0
- package/lib/lib.es2019.symbol.d.ts +22 -0
- package/lib/lib.es2020.bigint.d.ts +763 -0
- package/lib/lib.es2020.d.ts +25 -0
- package/lib/lib.es2020.date.d.ts +40 -0
- package/lib/lib.es2020.full.d.ts +22 -0
- package/lib/lib.es2020.intl.d.ts +471 -0
- package/lib/lib.es2020.number.d.ts +26 -0
- package/lib/lib.es2020.promise.d.ts +45 -0
- package/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/lib/lib.es2020.string.d.ts +42 -0
- package/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/lib/lib.es2021.d.ts +21 -0
- package/lib/lib.es2021.full.d.ts +22 -0
- package/lib/lib.es2021.intl.d.ts +164 -0
- package/lib/lib.es2021.promise.d.ts +46 -0
- package/lib/lib.es2021.string.d.ts +31 -0
- package/lib/lib.es2021.weakref.d.ts +76 -0
- package/lib/lib.es2022.array.d.ts +119 -0
- package/lib/lib.es2022.d.ts +23 -0
- package/lib/lib.es2022.error.d.ts +73 -0
- package/lib/lib.es2022.full.d.ts +22 -0
- package/lib/lib.es2022.intl.d.ts +143 -0
- package/lib/lib.es2022.object.d.ts +24 -0
- package/lib/lib.es2022.regexp.d.ts +37 -0
- package/lib/lib.es2022.string.d.ts +23 -0
- package/lib/lib.es2023.array.d.ts +922 -0
- package/lib/lib.es2023.collection.d.ts +19 -0
- package/lib/lib.es2023.d.ts +20 -0
- package/lib/lib.es2023.full.d.ts +22 -0
- package/lib/lib.es2023.intl.d.ts +62 -0
- package/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/lib/lib.es2024.collection.d.ts +27 -0
- package/lib/lib.es2024.d.ts +24 -0
- package/lib/lib.es2024.full.d.ts +22 -0
- package/lib/lib.es2024.object.d.ts +27 -0
- package/lib/lib.es2024.promise.d.ts +33 -0
- package/lib/lib.es2024.regexp.d.ts +23 -0
- package/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/lib/lib.es2024.string.d.ts +27 -0
- package/lib/lib.es2025.collection.d.ts +94 -0
- package/lib/lib.es2025.d.ts +23 -0
- package/lib/lib.es2025.float16.d.ts +443 -0
- package/lib/lib.es2025.full.d.ts +22 -0
- package/lib/lib.es2025.intl.d.ts +200 -0
- package/lib/lib.es2025.iterator.d.ts +146 -0
- package/lib/lib.es2025.promise.d.ts +32 -0
- package/lib/lib.es2025.regexp.d.ts +30 -0
- package/lib/lib.es2026.array.d.ts +33 -0
- package/lib/lib.es2026.collection.d.ts +47 -0
- package/lib/lib.es2026.d.ts +24 -0
- package/lib/lib.es2026.error.d.ts +22 -0
- package/lib/lib.es2026.full.d.ts +22 -0
- package/lib/lib.es2026.iterator.d.ts +25 -0
- package/lib/lib.es2026.json.d.ts +54 -0
- package/lib/lib.es2026.math.d.ts +27 -0
- package/lib/lib.es2026.typedarrays.d.ts +90 -0
- package/lib/lib.es5.d.ts +4599 -0
- package/lib/lib.es6.d.ts +21 -0
- package/lib/lib.esnext.d.ts +23 -0
- package/lib/lib.esnext.date.d.ts +21 -0
- package/lib/lib.esnext.decorators.d.ts +26 -0
- package/lib/lib.esnext.disposable.d.ts +191 -0
- package/lib/lib.esnext.full.d.ts +22 -0
- package/lib/lib.esnext.intl.d.ts +107 -0
- package/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/lib/lib.esnext.temporal.d.ts +485 -0
- package/lib/lib.scripthost.d.ts +320 -0
- package/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/lib/lib.webworker.d.ts +15606 -0
- package/lib/lib.webworker.importscripts.d.ts +21 -0
- package/lib/lib.webworker.iterable.d.ts +18 -0
- package/lib/tsc +4 -0
- package/package.json +41 -4
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
MERCHANTABILITY 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 lib="es2015.iterable" />
|
|
18
|
+
|
|
19
|
+
// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
|
|
20
|
+
// in the `declare global` section, below. This is necessary as there is currently no way to declare an `abstract`
|
|
21
|
+
// member without declaring a `class`, but declaring `class Iterator<T>` globally would conflict with TypeScript's
|
|
22
|
+
// general purpose `Iterator<T>` interface.
|
|
23
|
+
export {};
|
|
24
|
+
|
|
25
|
+
// Abstract type that allows us to mark `next` as `abstract`
|
|
26
|
+
declare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging
|
|
27
|
+
abstract next(value?: TNext): IteratorResult<T, TResult>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Merge all members of `IteratorObject<T>` into `Iterator<T>`
|
|
31
|
+
interface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {}
|
|
32
|
+
|
|
33
|
+
// Capture the `Iterator` constructor in a type we can use in the `extends` clause of `IteratorConstructor`.
|
|
34
|
+
type IteratorObjectConstructor = typeof Iterator;
|
|
35
|
+
|
|
36
|
+
declare global {
|
|
37
|
+
// Global `IteratorObject<T, TReturn, TNext>` interface that can be augmented by polyfills
|
|
38
|
+
interface IteratorObject<T, TReturn, TNext> {
|
|
39
|
+
/**
|
|
40
|
+
* Returns this iterator.
|
|
41
|
+
*/
|
|
42
|
+
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Creates an iterator whose values are the result of applying the callback to the values from this iterator.
|
|
46
|
+
* @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator.
|
|
47
|
+
*/
|
|
48
|
+
map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
|
|
52
|
+
* @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
|
|
53
|
+
*/
|
|
54
|
+
filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
|
|
58
|
+
* @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
|
|
59
|
+
*/
|
|
60
|
+
filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.
|
|
64
|
+
* @param limit The maximum number of values to yield.
|
|
65
|
+
*/
|
|
66
|
+
take(limit: number): IteratorObject<T, undefined, unknown>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Creates an iterator whose values are the values from this iterator after skipping the provided count.
|
|
70
|
+
* @param count The number of values to drop.
|
|
71
|
+
*/
|
|
72
|
+
drop(count: number): IteratorObject<T, undefined, unknown>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.
|
|
76
|
+
* @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.
|
|
77
|
+
*/
|
|
78
|
+
flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
82
|
+
* @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
|
|
83
|
+
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
|
|
84
|
+
*/
|
|
85
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
|
|
86
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
90
|
+
* @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
|
|
91
|
+
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
|
|
92
|
+
*/
|
|
93
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Creates a new array from the values yielded by this iterator.
|
|
97
|
+
*/
|
|
98
|
+
toArray(): T[];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Performs the specified action for each element in the iterator.
|
|
102
|
+
* @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.
|
|
103
|
+
*/
|
|
104
|
+
forEach(callbackfn: (value: T, index: number) => void): void;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Determines whether the specified callback function returns true for any element of this iterator.
|
|
108
|
+
* @param predicate A function that accepts up to two arguments. The some method calls
|
|
109
|
+
* the predicate function for each element in this iterator until the predicate returns a value
|
|
110
|
+
* true, or until the end of the iterator.
|
|
111
|
+
*/
|
|
112
|
+
some(predicate: (value: T, index: number) => unknown): boolean;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Determines whether all the members of this iterator satisfy the specified test.
|
|
116
|
+
* @param predicate A function that accepts up to two arguments. The every method calls
|
|
117
|
+
* the predicate function for each element in this iterator until the predicate returns
|
|
118
|
+
* false, or until the end of this iterator.
|
|
119
|
+
*/
|
|
120
|
+
every(predicate: (value: T, index: number) => unknown): boolean;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Returns the value of the first element in this iterator where predicate is true, and undefined
|
|
124
|
+
* otherwise.
|
|
125
|
+
* @param predicate find calls predicate once for each element of this iterator, in
|
|
126
|
+
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
127
|
+
* immediately returns that element value. Otherwise, find returns undefined.
|
|
128
|
+
*/
|
|
129
|
+
find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
|
|
130
|
+
find(predicate: (value: T, index: number) => unknown): T | undefined;
|
|
131
|
+
|
|
132
|
+
readonly [Symbol.toStringTag]: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Global `IteratorConstructor` interface that can be augmented by polyfills
|
|
136
|
+
interface IteratorConstructor extends IteratorObjectConstructor {
|
|
137
|
+
/**
|
|
138
|
+
* Creates a native iterator from an iterator or iterable object.
|
|
139
|
+
* Returns its input if the input already inherits from the built-in Iterator class.
|
|
140
|
+
* @param value An iterator or iterable object to convert a native iterator.
|
|
141
|
+
*/
|
|
142
|
+
from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
var Iterator: IteratorConstructor;
|
|
146
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
MERCHANTABILITY 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
|
+
interface PromiseConstructor {
|
|
18
|
+
/**
|
|
19
|
+
* Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
|
|
20
|
+
* in a Promise.
|
|
21
|
+
*
|
|
22
|
+
* @param callbackFn A function that is called synchronously. It can do anything: either return
|
|
23
|
+
* a value, throw an error, or return a promise.
|
|
24
|
+
* @param args Additional arguments, that will be passed to the callback.
|
|
25
|
+
*
|
|
26
|
+
* @returns A Promise that is:
|
|
27
|
+
* - Already fulfilled, if the callback synchronously returns a value.
|
|
28
|
+
* - Already rejected, if the callback synchronously throws an error.
|
|
29
|
+
* - Asynchronously fulfilled or rejected, if the callback returns a promise.
|
|
30
|
+
*/
|
|
31
|
+
try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
|
|
32
|
+
}
|
|
@@ -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
|
+
MERCHANTABILITY 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
|
+
interface RegExpConstructor {
|
|
18
|
+
/**
|
|
19
|
+
* Escapes any RegExp syntax characters in the input string, returning a
|
|
20
|
+
* new string that can be safely interpolated into a RegExp as a literal
|
|
21
|
+
* string to match.
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const regExp = new RegExp(RegExp.escape("foo.bar"));
|
|
25
|
+
* regExp.test("foo.bar"); // true
|
|
26
|
+
* regExp.test("foo!bar"); // false
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
escape(string: string): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
MERCHANTABILITY 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
|
+
interface ArrayConstructor {
|
|
18
|
+
/**
|
|
19
|
+
* Creates an array from an async iterator or iterable object.
|
|
20
|
+
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
|
21
|
+
*/
|
|
22
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Creates an array from an async iterator or iterable object.
|
|
26
|
+
*
|
|
27
|
+
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
|
28
|
+
* @param mapFn A mapping function to call on every element of iterableOrArrayLike.
|
|
29
|
+
* Each return value is awaited before being added to result array.
|
|
30
|
+
* @param thisArg Value of 'this' used when executing mapFn.
|
|
31
|
+
*/
|
|
32
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
33
|
+
}
|
|
@@ -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
|
+
MERCHANTABILITY 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 lib="es2025.collection" />
|
|
18
|
+
|
|
19
|
+
interface Map<K, V> {
|
|
20
|
+
/**
|
|
21
|
+
* Returns a specified element from the Map object.
|
|
22
|
+
* If no element is associated with the specified key, a new element with the value `defaultValue` will be inserted into the Map and returned.
|
|
23
|
+
* @returns The element associated with the specified key, which will be `defaultValue` if no element previously existed.
|
|
24
|
+
*/
|
|
25
|
+
getOrInsert(key: K, defaultValue: V): V;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a specified element from the Map object.
|
|
28
|
+
* If no element is associated with the specified key, the result of passing the specified key to the `callback` function will be inserted into the Map and returned.
|
|
29
|
+
* @returns The element associated with the specific key, which will be the newly computed value if no element previously existed.
|
|
30
|
+
*/
|
|
31
|
+
getOrInsertComputed(key: K, callback: (key: K) => V): V;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface WeakMap<K extends WeakKey, V> {
|
|
35
|
+
/**
|
|
36
|
+
* Returns a specified element from the WeakMap object.
|
|
37
|
+
* If no element is associated with the specified key, a new element with the value `defaultValue` will be inserted into the WeakMap and returned.
|
|
38
|
+
* @returns The element associated with the specified key, which will be `defaultValue` if no element previously existed.
|
|
39
|
+
*/
|
|
40
|
+
getOrInsert(key: K, defaultValue: V): V;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a specified element from the WeakMap object.
|
|
43
|
+
* If no element is associated with the specified key, the result of passing the specified key to the `callback` function will be inserted into the WeakMap and returned.
|
|
44
|
+
* @returns The element associated with the specific key, which will be the newly computed value if no element previously existed.
|
|
45
|
+
*/
|
|
46
|
+
getOrInsertComputed(key: K, callback: (key: K) => V): V;
|
|
47
|
+
}
|
|
@@ -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
|
+
MERCHANTABILITY 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 lib="es2025" />
|
|
18
|
+
/// <reference lib="es2026.array" />
|
|
19
|
+
/// <reference lib="es2026.collection" />
|
|
20
|
+
/// <reference lib="es2026.error" />
|
|
21
|
+
/// <reference lib="es2026.iterator" />
|
|
22
|
+
/// <reference lib="es2026.json" />
|
|
23
|
+
/// <reference lib="es2026.math" />
|
|
24
|
+
/// <reference lib="es2026.typedarrays" />
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
MERCHANTABILITY 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
|
+
interface ErrorConstructor {
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the argument provided is a built-in Error instance or not.
|
|
20
|
+
*/
|
|
21
|
+
isError(error: unknown): error is Error;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
MERCHANTABILITY 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 lib="es2026" />
|
|
18
|
+
/// <reference lib="dom" />
|
|
19
|
+
/// <reference lib="webworker.importscripts" />
|
|
20
|
+
/// <reference lib="scripthost" />
|
|
21
|
+
/// <reference lib="dom.iterable" />
|
|
22
|
+
/// <reference lib="dom.asynciterable" />
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
MERCHANTABILITY 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 lib="es2025.iterator" />
|
|
18
|
+
|
|
19
|
+
interface IteratorConstructor {
|
|
20
|
+
/**
|
|
21
|
+
* Creates an iterator that yields the values of each iterable in sequence.
|
|
22
|
+
* @param iterables Iterable objects to concatenate.
|
|
23
|
+
*/
|
|
24
|
+
concat<T extends readonly unknown[] | []>(...iterables: { -readonly [K in keyof T]: Iterable<T[K]> & object }): IteratorObject<T[number], undefined, unknown>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
MERCHANTABILITY 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
|
+
export {};
|
|
18
|
+
|
|
19
|
+
declare class RawJSONInstance {
|
|
20
|
+
#isRawJson: unknown;
|
|
21
|
+
readonly rawJSON: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare global {
|
|
25
|
+
/**
|
|
26
|
+
* A frozen object containing JSON text for a primitive value, created by `JSON.rawJSON()`.
|
|
27
|
+
*/
|
|
28
|
+
interface RawJSON extends RawJSONInstance {}
|
|
29
|
+
|
|
30
|
+
interface JSON {
|
|
31
|
+
/**
|
|
32
|
+
* Converts a JavaScript Object Notation (JSON) string into an object.
|
|
33
|
+
* @param text A valid JSON string.
|
|
34
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
35
|
+
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
36
|
+
* The context object has a `source` property when the property is unmodified and its value is primitive.
|
|
37
|
+
* @throws {SyntaxError} If `text` is not valid JSON.
|
|
38
|
+
*/
|
|
39
|
+
parse(text: string, reviver: (this: any, key: string, value: any, context: { source?: string }) => any): any;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Creates a frozen object containing JSON text for a primitive value.
|
|
43
|
+
* @param text Valid JSON text representing a string, number, boolean, or null value.
|
|
44
|
+
* @throws {SyntaxError} If `text` is not valid JSON text for a primitive value.
|
|
45
|
+
*/
|
|
46
|
+
rawJSON(text: string): RawJSON;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Indicates whether the provided value is an object returned by `JSON.rawJSON()`.
|
|
50
|
+
* @param value The value to test.
|
|
51
|
+
*/
|
|
52
|
+
isRawJSON(value: unknown): value is RawJSON;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
MERCHANTABILITY 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 lib="es2015.iterable" />
|
|
18
|
+
|
|
19
|
+
interface Math {
|
|
20
|
+
/**
|
|
21
|
+
* Sums the values in an iterable while minimizing loss of precision.
|
|
22
|
+
* @param items An iterable of numbers to sum.
|
|
23
|
+
* @throws {TypeError} If `items` is not iterable or contains a value that is not a number.
|
|
24
|
+
* @throws {RangeError} If `items` contains 2^53 or more values.
|
|
25
|
+
*/
|
|
26
|
+
sumPrecise(items: Iterable<number>): number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
MERCHANTABILITY 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
|
+
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
18
|
+
/**
|
|
19
|
+
* Converts the `Uint8Array` to a base64-encoded string.
|
|
20
|
+
* @param options If provided, sets the alphabet and padding behavior used.
|
|
21
|
+
* @returns A base64-encoded string.
|
|
22
|
+
*/
|
|
23
|
+
toBase64(
|
|
24
|
+
options?: {
|
|
25
|
+
alphabet?: "base64" | "base64url" | undefined;
|
|
26
|
+
omitPadding?: boolean | undefined;
|
|
27
|
+
},
|
|
28
|
+
): string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Sets the `Uint8Array` from a base64-encoded string.
|
|
32
|
+
* @param string The base64-encoded string.
|
|
33
|
+
* @param options If provided, specifies the alphabet and handling of the last chunk.
|
|
34
|
+
* @returns An object containing the number of bytes read and written.
|
|
35
|
+
* @throws {SyntaxError} If the input string contains characters outside the specified alphabet, or if the last
|
|
36
|
+
* chunk is inconsistent with the `lastChunkHandling` option.
|
|
37
|
+
*/
|
|
38
|
+
setFromBase64(
|
|
39
|
+
string: string,
|
|
40
|
+
options?: {
|
|
41
|
+
alphabet?: "base64" | "base64url" | undefined;
|
|
42
|
+
lastChunkHandling?: "loose" | "strict" | "stop-before-partial" | undefined;
|
|
43
|
+
},
|
|
44
|
+
): {
|
|
45
|
+
read: number;
|
|
46
|
+
written: number;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Converts the `Uint8Array` to a base16-encoded string.
|
|
51
|
+
* @returns A base16-encoded string.
|
|
52
|
+
*/
|
|
53
|
+
toHex(): string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Sets the `Uint8Array` from a base16-encoded string.
|
|
57
|
+
* @param string The base16-encoded string.
|
|
58
|
+
* @returns An object containing the number of bytes read and written.
|
|
59
|
+
*/
|
|
60
|
+
setFromHex(string: string): {
|
|
61
|
+
read: number;
|
|
62
|
+
written: number;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface Uint8ArrayConstructor {
|
|
67
|
+
/**
|
|
68
|
+
* Creates a new `Uint8Array` from a base64-encoded string.
|
|
69
|
+
* @param string The base64-encoded string.
|
|
70
|
+
* @param options If provided, specifies the alphabet and handling of the last chunk.
|
|
71
|
+
* @returns A new `Uint8Array` instance.
|
|
72
|
+
* @throws {SyntaxError} If the input string contains characters outside the specified alphabet, or if the last
|
|
73
|
+
* chunk is inconsistent with the `lastChunkHandling` option.
|
|
74
|
+
*/
|
|
75
|
+
fromBase64(
|
|
76
|
+
string: string,
|
|
77
|
+
options?: {
|
|
78
|
+
alphabet?: "base64" | "base64url" | undefined;
|
|
79
|
+
lastChunkHandling?: "loose" | "strict" | "stop-before-partial" | undefined;
|
|
80
|
+
},
|
|
81
|
+
): Uint8Array<ArrayBuffer>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creates a new `Uint8Array` from a base16-encoded string.
|
|
85
|
+
* @returns A new `Uint8Array` instance.
|
|
86
|
+
*/
|
|
87
|
+
fromHex(
|
|
88
|
+
string: string,
|
|
89
|
+
): Uint8Array<ArrayBuffer>;
|
|
90
|
+
}
|