@typescript-deploys/pr-build 5.5.0-pr-58243-73 → 5.5.0-pr-58243-90
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/lib/lib.es2015.generator.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +3 -3
- package/lib/lib.es2018.asyncgenerator.d.ts +1 -1
- package/lib/lib.es2018.asynciterable.d.ts +3 -3
- package/lib/tsc.js +191 -127
- package/lib/typescript.d.ts +30 -2
- package/lib/typescript.js +518 -179
- package/package.json +3 -1
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
/// <reference lib="es2015.iterable" />
|
|
20
20
|
|
|
21
|
-
interface Generator<T = unknown, TReturn = any, TNext =
|
|
21
|
+
interface Generator<T = unknown, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {
|
|
22
22
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
23
23
|
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
24
24
|
return(value: TReturn): IteratorResult<T, TReturn>;
|
|
@@ -38,18 +38,18 @@ interface IteratorReturnResult<TReturn> {
|
|
|
38
38
|
|
|
39
39
|
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
|
|
40
40
|
|
|
41
|
-
interface Iterator<T, TReturn = any, TNext =
|
|
41
|
+
interface Iterator<T, TReturn = any, TNext = any> {
|
|
42
42
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
43
43
|
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
44
44
|
return?(value?: TReturn): IteratorResult<T, TReturn>;
|
|
45
45
|
throw?(e?: any): IteratorResult<T, TReturn>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
interface Iterable<T, TReturn = any, TNext =
|
|
48
|
+
interface Iterable<T, TReturn = any, TNext = any> {
|
|
49
49
|
[Symbol.iterator](): Iterator<T, TReturn, TNext>;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
interface IterableIterator<T, TReturn = any, TNext =
|
|
52
|
+
interface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {
|
|
53
53
|
[Symbol.iterator](): IterableIterator<T, TReturn, TNext>;
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
/// <reference lib="es2018.asynciterable" />
|
|
20
20
|
|
|
21
|
-
interface AsyncGenerator<T = unknown, TReturn = any, TNext =
|
|
21
|
+
interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
|
|
22
22
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
23
23
|
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
24
24
|
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
@@ -27,17 +27,17 @@ interface SymbolConstructor {
|
|
|
27
27
|
readonly asyncIterator: unique symbol;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
interface AsyncIterator<T, TReturn = any, TNext =
|
|
30
|
+
interface AsyncIterator<T, TReturn = any, TNext = any> {
|
|
31
31
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
32
32
|
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
33
33
|
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
34
34
|
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
interface AsyncIterable<T, TReturn = any, TNext =
|
|
37
|
+
interface AsyncIterable<T, TReturn = any, TNext = any> {
|
|
38
38
|
[Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
interface AsyncIterableIterator<T, TReturn = any, TNext =
|
|
41
|
+
interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
|
|
42
42
|
[Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
|
|
43
43
|
}
|