typescript 5.6.0-dev.20240721 → 5.6.0-dev.20240722
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.
|
@@ -21,13 +21,13 @@ and limitations under the License.
|
|
|
21
21
|
/////////////////////////////
|
|
22
22
|
|
|
23
23
|
interface FileSystemDirectoryHandle {
|
|
24
|
-
[Symbol.asyncIterator]():
|
|
25
|
-
entries():
|
|
26
|
-
keys():
|
|
27
|
-
values():
|
|
24
|
+
[Symbol.asyncIterator](): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
|
|
25
|
+
entries(): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
|
|
26
|
+
keys(): BuiltinAsyncIterator<string, BuiltinIteratorReturn>;
|
|
27
|
+
values(): BuiltinAsyncIterator<FileSystemHandle, BuiltinIteratorReturn>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
interface ReadableStream<R = any> {
|
|
31
|
-
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions):
|
|
32
|
-
values(options?: ReadableStreamIteratorOptions):
|
|
31
|
+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
|
|
32
|
+
values(options?: ReadableStreamIteratorOptions): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
|
|
33
33
|
}
|
|
@@ -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 = any> extends
|
|
21
|
+
interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends BuiltinAsyncIterator<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(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
24
24
|
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
@@ -42,6 +42,6 @@ interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIter
|
|
|
42
42
|
[Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
interface
|
|
46
|
-
[Symbol.asyncIterator]():
|
|
45
|
+
interface BuiltinAsyncIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
|
|
46
|
+
[Symbol.asyncIterator](): BuiltinAsyncIterator<T, TReturn, TNext>;
|
|
47
47
|
}
|
|
@@ -21,13 +21,13 @@ and limitations under the License.
|
|
|
21
21
|
/////////////////////////////
|
|
22
22
|
|
|
23
23
|
interface FileSystemDirectoryHandle {
|
|
24
|
-
[Symbol.asyncIterator]():
|
|
25
|
-
entries():
|
|
26
|
-
keys():
|
|
27
|
-
values():
|
|
24
|
+
[Symbol.asyncIterator](): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
|
|
25
|
+
entries(): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
|
|
26
|
+
keys(): BuiltinAsyncIterator<string, BuiltinIteratorReturn>;
|
|
27
|
+
values(): BuiltinAsyncIterator<FileSystemHandle, BuiltinIteratorReturn>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
interface ReadableStream<R = any> {
|
|
31
|
-
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions):
|
|
32
|
-
values(options?: ReadableStreamIteratorOptions):
|
|
31
|
+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
|
|
32
|
+
values(options?: ReadableStreamIteratorOptions): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
|
|
33
33
|
}
|
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.6";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240722`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -46136,7 +46136,7 @@ function createTypeChecker(host) {
|
|
|
46136
46136
|
getGlobalIteratorType: getGlobalAsyncIteratorType,
|
|
46137
46137
|
getGlobalIterableType: getGlobalAsyncIterableType,
|
|
46138
46138
|
getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,
|
|
46139
|
-
getGlobalBuiltinIteratorType:
|
|
46139
|
+
getGlobalBuiltinIteratorType: getGlobalBuiltinAsyncIteratorType,
|
|
46140
46140
|
getGlobalGeneratorType: getGlobalAsyncGeneratorType,
|
|
46141
46141
|
resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),
|
|
46142
46142
|
mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,
|
|
@@ -46196,7 +46196,7 @@ function createTypeChecker(host) {
|
|
|
46196
46196
|
var deferredGlobalAsyncIterableType;
|
|
46197
46197
|
var deferredGlobalAsyncIteratorType;
|
|
46198
46198
|
var deferredGlobalAsyncIterableIteratorType;
|
|
46199
|
-
var
|
|
46199
|
+
var deferredGlobalBuiltinAsyncIteratorType;
|
|
46200
46200
|
var deferredGlobalAsyncGeneratorType;
|
|
46201
46201
|
var deferredGlobalTemplateStringsArrayType;
|
|
46202
46202
|
var deferredGlobalImportMetaType;
|
|
@@ -58998,9 +58998,9 @@ function createTypeChecker(host) {
|
|
|
58998
58998
|
reportErrors2
|
|
58999
58999
|
)) || emptyGenericType;
|
|
59000
59000
|
}
|
|
59001
|
-
function
|
|
59002
|
-
return
|
|
59003
|
-
"
|
|
59001
|
+
function getGlobalBuiltinAsyncIteratorType(reportErrors2) {
|
|
59002
|
+
return deferredGlobalBuiltinAsyncIteratorType || (deferredGlobalBuiltinAsyncIteratorType = getGlobalType(
|
|
59003
|
+
"BuiltinAsyncIterator",
|
|
59004
59004
|
/*arity*/
|
|
59005
59005
|
3,
|
|
59006
59006
|
reportErrors2
|
package/lib/typescript.js
CHANGED
|
@@ -2257,7 +2257,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2257
2257
|
|
|
2258
2258
|
// src/compiler/corePublic.ts
|
|
2259
2259
|
var versionMajorMinor = "5.6";
|
|
2260
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2260
|
+
var version = `${versionMajorMinor}.0-dev.20240722`;
|
|
2261
2261
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2262
2262
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2263
2263
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -50745,7 +50745,7 @@ function createTypeChecker(host) {
|
|
|
50745
50745
|
getGlobalIteratorType: getGlobalAsyncIteratorType,
|
|
50746
50746
|
getGlobalIterableType: getGlobalAsyncIterableType,
|
|
50747
50747
|
getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,
|
|
50748
|
-
getGlobalBuiltinIteratorType:
|
|
50748
|
+
getGlobalBuiltinIteratorType: getGlobalBuiltinAsyncIteratorType,
|
|
50749
50749
|
getGlobalGeneratorType: getGlobalAsyncGeneratorType,
|
|
50750
50750
|
resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),
|
|
50751
50751
|
mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,
|
|
@@ -50805,7 +50805,7 @@ function createTypeChecker(host) {
|
|
|
50805
50805
|
var deferredGlobalAsyncIterableType;
|
|
50806
50806
|
var deferredGlobalAsyncIteratorType;
|
|
50807
50807
|
var deferredGlobalAsyncIterableIteratorType;
|
|
50808
|
-
var
|
|
50808
|
+
var deferredGlobalBuiltinAsyncIteratorType;
|
|
50809
50809
|
var deferredGlobalAsyncGeneratorType;
|
|
50810
50810
|
var deferredGlobalTemplateStringsArrayType;
|
|
50811
50811
|
var deferredGlobalImportMetaType;
|
|
@@ -63607,9 +63607,9 @@ function createTypeChecker(host) {
|
|
|
63607
63607
|
reportErrors2
|
|
63608
63608
|
)) || emptyGenericType;
|
|
63609
63609
|
}
|
|
63610
|
-
function
|
|
63611
|
-
return
|
|
63612
|
-
"
|
|
63610
|
+
function getGlobalBuiltinAsyncIteratorType(reportErrors2) {
|
|
63611
|
+
return deferredGlobalBuiltinAsyncIteratorType || (deferredGlobalBuiltinAsyncIteratorType = getGlobalType(
|
|
63612
|
+
"BuiltinAsyncIterator",
|
|
63613
63613
|
/*arity*/
|
|
63614
63614
|
3,
|
|
63615
63615
|
reportErrors2
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.6.0-dev.
|
|
5
|
+
"version": "5.6.0-dev.20240722",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "5929c963781a3f026a499746c7109a71b2400437"
|
|
118
118
|
}
|