/
opt
/
canhelp
/
node_modules
/
typescript
/
lib
/
/opt/canhelp/node_modules/typescript/lib
mkdir
upload
Name
Size
Mode
Actions
cs/
-
0755
rm
de/
-
0755
rm
es/
-
0755
rm
fr/
-
0755
rm
it/
-
0755
rm
ja/
-
0755
rm
ko/
-
0755
rm
pl/
-
0755
rm
pt-br/
-
0755
rm
ru/
-
0755
rm
tr/
-
0755
rm
zh-cn/
-
0755
rm
zh-tw/
-
0755
rm
lib.d.ts
992
0644
edit
dl
rm
lib.decorators.d.ts
13192
0644
edit
dl
rm
lib.decorators.legacy.d.ts
1326
0644
edit
dl
rm
lib.dom.asynciterable.d.ts
1887
0644
edit
dl
rm
lib.dom.d.ts
1874901
0644
edit
dl
rm
lib.dom.iterable.d.ts
29802
0644
edit
dl
rm
lib.es5.d.ts
218439
0644
edit
dl
rm
lib.es6.d.ts
1032
0644
edit
dl
rm
lib.es2015.collection.d.ts
5229
0644
edit
dl
rm
lib.es2015.core.d.ts
22866
0644
edit
dl
rm
lib.es2015.d.ts
1241
0644
edit
dl
rm
lib.es2015.generator.d.ts
2557
0644
edit
dl
rm
lib.es2015.iterable.d.ts
18200
0644
edit
dl
rm
lib.es2015.promise.d.ts
3200
0644
edit
dl
rm
lib.es2015.proxy.d.ts
5251
0644
edit
dl
rm
lib.es2015.reflect.d.ts
6493
0644
edit
dl
rm
lib.es2015.symbol.d.ts
1649
0644
edit
dl
rm
lib.es2015.symbol.wellknown.d.ts
11010
0644
edit
dl
rm
lib.es2016.array.include.d.ts
5204
0644
edit
dl
rm
lib.es2016.d.ts
965
0644
edit
dl
rm
lib.es2016.full.d.ts
1032
0644
edit
dl
rm
lib.es2016.intl.d.ts
1484
0644
edit
dl
rm
lib.es2017.arraybuffer.d.ts
915
0644
edit
dl
rm
lib.es2017.d.ts
1162
0644
edit
dl
rm
lib.es2017.date.d.ts
1916
0644
edit
dl
rm
lib.es2017.full.d.ts
1032
0644
edit
dl
rm
lib.es2017.intl.d.ts
1449
0644
edit
dl
rm
lib.es2017.object.d.ts
2473
0644
edit
dl
rm
lib.es2017.sharedmemory.d.ts
7209
0644
edit
dl
rm
lib.es2017.string.d.ts
2378
0644
edit
dl
rm
lib.es2017.typedarrays.d.ts
1542
0644
edit
dl
rm
lib.es2018.asyncgenerator.d.ts
2692
0644
edit
dl
rm
lib.es2018.asynciterable.d.ts
2257
0644
edit
dl
rm
lib.es2018.d.ts
1088
0644
edit
dl
rm
lib.es2018.full.d.ts
1074
0644
edit
dl
rm
lib.es2018.intl.d.ts
3021
0644
edit
dl
rm
lib.es2018.promise.d.ts
1353
0644
edit
dl
rm
lib.es2018.regexp.d.ts
1232
0644
edit
dl
rm
lib.es2019.array.d.ts
3163
0644
edit
dl
rm
lib.es2019.d.ts
1071
0644
edit
dl
rm
lib.es2019.full.d.ts
1074
0644
edit
dl
rm
lib.es2019.intl.d.ts
958
0644
edit
dl
rm
lib.es2019.object.d.ts
1473
0644
edit
dl
rm
lib.es2019.string.d.ts
1528
0644
edit
dl
rm
lib.es2019.symbol.d.ts
1006
0644
edit
dl
rm
lib.es2020.bigint.d.ts
38185
0644
edit
dl
rm
lib.es2020.d.ts
1201
0644
edit
dl
rm
lib.es2020.date.d.ts
2956
0644
edit
dl
rm
lib.es2020.full.d.ts
1074
0644
edit
dl
rm
lib.es2020.intl.d.ts
22438
0644
edit
dl
rm
lib.es2020.number.d.ts
1587
0644
edit
dl
rm
lib.es2020.promise.d.ts
1803
0644
edit
dl
rm
lib.es2020.sharedmemory.d.ts
5128
0644
edit
dl
rm
lib.es2020.string.d.ts
2556
0644
edit
dl
rm
lib.es2020.symbol.wellknown.d.ts
1606
0644
edit
dl
rm
lib.es2021.d.ts
1036
0644
edit
dl
rm
lib.es2021.full.d.ts
1074
0644
edit
dl
rm
lib.es2021.intl.d.ts
8245
0644
edit
dl
rm
lib.es2021.promise.d.ts
2262
0644
edit
dl
rm
lib.es2021.string.d.ts
1592
0644
edit
dl
rm
lib.es2021.weakref.d.ts
3171
0644
edit
dl
rm
lib.es2022.array.d.ts
4676
0644
edit
dl
rm
lib.es2022.d.ts
1108
0644
edit
dl
rm
lib.es2022.error.d.ts
2379
0644
edit
dl
rm
lib.es2022.full.d.ts
1074
0644
edit
dl
rm
lib.es2022.intl.d.ts
7692
0644
edit
dl
rm
lib.es2022.object.d.ts
1085
0644
edit
dl
rm
lib.es2022.regexp.d.ts
1331
0644
edit
dl
rm
lib.es2022.string.d.ts
1155
0644
edit
dl
rm
lib.es2023.array.d.ts
40236
0644
edit
dl
rm
lib.es2023.collection.d.ts
900
0644
edit
dl
rm
lib.es2023.d.ts
999
0644
edit
dl
rm
lib.es2023.full.d.ts
1074
0644
edit
dl
rm
lib.es2023.intl.d.ts
2645
0644
edit
dl
rm
lib.es2024.arraybuffer.d.ts
2637
0644
edit
dl
rm
lib.es2024.collection.d.ts
1224
0644
edit
dl
rm
lib.es2024.d.ts
1166
0644
edit
dl
rm
lib.es2024.full.d.ts
1074
0644
edit
dl
rm
lib.es2024.object.d.ts
1259
0644
edit
dl
rm
lib.es2024.promise.d.ts
1389
0644
edit
dl
rm
lib.es2024.regexp.d.ts
1073
0644
edit
dl
rm
lib.es2024.sharedmemory.d.ts
3077
0644
edit
dl
rm
lib.es2024.string.d.ts
1194
0644
edit
dl
rm
lib.esnext.array.d.ts
1791
0644
edit
dl
rm
lib.esnext.collection.d.ts
3878
0644
edit
dl
rm
lib.esnext.d.ts
1282
0644
edit
dl
rm
lib.esnext.decorators.d.ts
1070
0644
edit
dl
rm
lib.esnext.disposable.d.ts
6806
0644
edit
dl
rm
lib.esnext.error.d.ts
1029
0644
edit
dl
rm
lib.esnext.float16.d.ts
20528
0644
edit
dl
rm
lib.esnext.full.d.ts
1074
0644
edit
dl
rm
lib.esnext.intl.d.ts
893
0644
edit
dl
rm
lib.esnext.iterator.d.ts
8676
0644
edit
dl
rm
lib.esnext.promise.d.ts
1658
0644
edit
dl
rm
lib.esnext.sharedmemory.d.ts
1067
0644
edit
dl
rm
lib.scripthost.d.ts
9451
0644
edit
dl
rm
lib.webworker.asynciterable.d.ts
1887
0644
edit
dl
rm
lib.webworker.d.ts
609557
0644
edit
dl
rm
lib.webworker.importscripts.d.ts
1041
0644
edit
dl
rm
lib.webworker.iterable.d.ts
22768
0644
edit
dl
rm
tsc.js
267
0644
edit
dl
rm
tsserver.js
272
0644
edit
dl
rm
tsserverlibrary.d.ts
865
0644
edit
dl
rm
tsserverlibrary.js
1012
0644
edit
dl
rm
typescript.d.ts
588085
0644
edit
dl
rm
typescript.js
9112572
0644
edit
dl
rm
typesMap.json
16788
0644
edit
dl
rm
typingsInstaller.js
280
0644
edit
dl
rm
watchGuard.js
2313
0644
edit
dl
rm
_tsc.js
6213092
0644
edit
dl
rm
_tsserver.js
27888
0644
edit
dl
rm
_typingsInstaller.js
10363
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/typescript/lib/lib.esnext.iterator.d.ts
(8676B)
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.iterable" /> // NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found // in the `declare global` section, below. This is necessary as there is currently no way to declare an `abstract` // member without declaring a `class`, but declaring `class Iterator<T>` globally would conflict with TypeScript's // general purpose `Iterator<T>` interface. export {}; // Abstract type that allows us to mark `next` as `abstract` declare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging abstract next(value?: TNext): IteratorResult<T, TResult>; } // Merge all members of `IteratorObject<T>` into `Iterator<T>` interface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {} // Capture the `Iterator` constructor in a type we can use in the `extends` clause of `IteratorConstructor`. type IteratorObjectConstructor = typeof Iterator; declare global { // Global `IteratorObject<T, TReturn, TNext>` interface that can be augmented by polyfills interface IteratorObject<T, TReturn, TNext> { /** * Returns this iterator. */ [Symbol.iterator](): IteratorObject<T, TReturn, TNext>; /** * Creates an iterator whose values are the result of applying the callback to the values from this iterator. * @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator. */ map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>; /** * Creates an iterator whose values are those from this iterator for which the provided predicate returns true. * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator. */ filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>; /** * Creates an iterator whose values are those from this iterator for which the provided predicate returns true. * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator. */ filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>; /** * Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached. * @param limit The maximum number of values to yield. */ take(limit: number): IteratorObject<T, undefined, unknown>; /** * Creates an iterator whose values are the values from this iterator after skipping the provided count. * @param count The number of values to drop. */ drop(count: number): IteratorObject<T, undefined, unknown>; /** * 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. * @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. */ flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>; /** * 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. * @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. * @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. */ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T; reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T; /** * 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. * @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. * @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. */ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U; /** * Creates a new array from the values yielded by this iterator. */ toArray(): T[]; /** * Performs the specified action for each element in the iterator. * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator. */ forEach(callbackfn: (value: T, index: number) => void): void; /** * Determines whether the specified callback function returns true for any element of this iterator. * @param predicate A function that accepts up to two arguments. The some method calls * the predicate function for each element in this iterator until the predicate returns a value * true, or until the end of the iterator. */ some(predicate: (value: T, index: number) => unknown): boolean; /** * Determines whether all the members of this iterator satisfy the specified test. * @param predicate A function that accepts up to two arguments. The every method calls * the predicate function for each element in this iterator until the predicate returns * false, or until the end of this iterator. */ every(predicate: (value: T, index: number) => unknown): boolean; /** * Returns the value of the first element in this iterator where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of this iterator, in * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. */ find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined; find(predicate: (value: T, index: number) => unknown): T | undefined; readonly [Symbol.toStringTag]: string; } // Global `IteratorConstructor` interface that can be augmented by polyfills interface IteratorConstructor extends IteratorObjectConstructor { /** * Creates a native iterator from an iterator or iterable object. * Returns its input if the input already inherits from the built-in Iterator class. * @param value An iterator or iterable object to convert a native iterator. */ from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>; } var Iterator: IteratorConstructor; }
Save
cmd:
run