diff --git a/src/lib/es2015.collection.d.ts b/src/lib/es2015.collection.d.ts index e88f0d4c3b405..4b6f38206cf52 100644 --- a/src/lib/es2015.collection.d.ts +++ b/src/lib/es2015.collection.d.ts @@ -1,4 +1,4 @@ -interface Map { +interface Map { clear(): void; /** * @returns true if an element in the Map existed and has been removed, or false if the element does not exist. @@ -34,14 +34,14 @@ interface MapConstructor { } declare var Map: MapConstructor; -interface ReadonlyMap { +interface ReadonlyMap { forEach(callbackfn: (value: V, key: K, map: ReadonlyMap) => void, thisArg?: any): void; get(key: K): V | undefined; has(key: K): boolean; readonly size: number; } -interface WeakMap { +interface WeakMap { /** * Removes the specified element from the WeakMap. * @returns true if the element was successfully removed, or false if it was not present. @@ -68,7 +68,7 @@ interface WeakMapConstructor { } declare var WeakMap: WeakMapConstructor; -interface Set { +interface Set { /** * Appends a new element with a specified value to the end of the Set. */ @@ -100,13 +100,13 @@ interface SetConstructor { } declare var Set: SetConstructor; -interface ReadonlySet { +interface ReadonlySet { forEach(callbackfn: (value: T, value2: T, set: ReadonlySet) => void, thisArg?: any): void; has(value: T): boolean; readonly size: number; } -interface WeakSet { +interface WeakSet { /** * Appends a new value to the end of the WeakSet. */ diff --git a/src/lib/es2015.iterable.d.ts b/src/lib/es2015.iterable.d.ts index 07b7322dd1a12..0e863780a9d1a 100644 --- a/src/lib/es2015.iterable.d.ts +++ b/src/lib/es2015.iterable.d.ts @@ -116,11 +116,11 @@ interface IArguments { [Symbol.iterator](): ArrayIterator; } -interface MapIterator extends IteratorObject { +interface MapIterator extends IteratorObject { [Symbol.iterator](): MapIterator; } -interface Map { +interface Map { /** Returns an iterable of entries in the map. */ [Symbol.iterator](): MapIterator<[K, V]>; @@ -140,7 +140,7 @@ interface Map { values(): MapIterator; } -interface ReadonlyMap { +interface ReadonlyMap { /** Returns an iterable of entries in the map. */ [Symbol.iterator](): MapIterator<[K, V]>; @@ -165,17 +165,17 @@ interface MapConstructor { new (iterable?: Iterable | null): Map; } -interface WeakMap {} +interface WeakMap {} interface WeakMapConstructor { new (iterable: Iterable): WeakMap; } -interface SetIterator extends IteratorObject { +interface SetIterator extends IteratorObject { [Symbol.iterator](): SetIterator; } -interface Set { +interface Set { /** Iterates over values in the set. */ [Symbol.iterator](): SetIterator; @@ -195,7 +195,7 @@ interface Set { values(): SetIterator; } -interface ReadonlySet { +interface ReadonlySet { /** Iterates over values in the set. */ [Symbol.iterator](): SetIterator; @@ -219,7 +219,7 @@ interface SetConstructor { new (iterable?: Iterable | null): Set; } -interface WeakSet {} +interface WeakSet {} interface WeakSetConstructor { new (iterable: Iterable): WeakSet; @@ -245,7 +245,7 @@ interface PromiseConstructor { race(values: Iterable>): Promise>; } -interface StringIterator extends IteratorObject { +interface StringIterator extends IteratorObject { [Symbol.iterator](): StringIterator; } diff --git a/src/lib/es2015.symbol.wellknown.d.ts b/src/lib/es2015.symbol.wellknown.d.ts index 1ab84be969fca..8b2d451b7c0d2 100644 --- a/src/lib/es2015.symbol.wellknown.d.ts +++ b/src/lib/es2015.symbol.wellknown.d.ts @@ -115,19 +115,19 @@ interface Date { [Symbol.toPrimitive](hint: string): string | number; } -interface Map { +interface Map { readonly [Symbol.toStringTag]: string; } -interface WeakMap { +interface WeakMap { readonly [Symbol.toStringTag]: string; } -interface Set { +interface Set { readonly [Symbol.toStringTag]: string; } -interface WeakSet { +interface WeakSet { readonly [Symbol.toStringTag]: string; } diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 3ca96f12760be..b1b5610f03b84 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1516,7 +1516,7 @@ interface TypedPropertyDescriptor { declare type PromiseConstructorLike = new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike; -interface PromiseLike { +interface PromiseLike { /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -1529,7 +1529,7 @@ interface PromiseLike { /** * Represents the completion of an asynchronous operation */ -interface Promise { +interface Promise { /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. diff --git a/src/lib/esnext.collection.d.ts b/src/lib/esnext.collection.d.ts index 712e8d34277da..b8d4b818d582c 100644 --- a/src/lib/esnext.collection.d.ts +++ b/src/lib/esnext.collection.d.ts @@ -1,6 +1,6 @@ /// -interface ReadonlySetLike { +interface ReadonlySetLike { /** * Despite its name, returns an iterator of the values in the set-like. */ @@ -15,7 +15,7 @@ interface ReadonlySetLike { readonly size: number; } -interface Set { +interface Set { /** * @returns a new Set containing all the elements in this Set and also all the elements in the argument. */ @@ -46,7 +46,7 @@ interface Set { isDisjointFrom(other: ReadonlySetLike): boolean; } -interface ReadonlySet { +interface ReadonlySet { /** * @returns a new Set containing all the elements in this Set and also all the elements in the argument. */ diff --git a/tests/baselines/reference/completionsCommitCharactersGlobal.baseline b/tests/baselines/reference/completionsCommitCharactersGlobal.baseline index 582d3363da492..4468c3ee6fab5 100644 --- a/tests/baselines/reference/completionsCommitCharactersGlobal.baseline +++ b/tests/baselines/reference/completionsCommitCharactersGlobal.baseline @@ -2693,9 +2693,9 @@ // | type Parameters any> = T extends (...args: infer P) => any ? P : never // | type Partial = { [P in keyof T]?: T[P]; } // | type Pick = { [P in K]: T[P]; } -// | interface Promise +// | interface Promise // | type PromiseConstructorLike = new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike -// | interface PromiseLike +// | interface PromiseLike // | type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void // | interface PropertyDescriptor // | interface PropertyDescriptorMap @@ -2873,9 +2873,9 @@ // | type Parameters any> = T extends (...args: infer P) => any ? P : never // | type Partial = { [P in keyof T]?: T[P]; } // | type Pick = { [P in K]: T[P]; } -// | interface Promise +// | interface Promise // | type PromiseConstructorLike = new (executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike -// | interface PromiseLike +// | interface PromiseLike // | type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void // | interface PropertyDescriptor // | interface PropertyDescriptorMap @@ -80790,6 +80790,14 @@ "text": "<", "kind": "punctuation" }, + { + "text": "out", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, { "text": "T", "kind": "typeParameterName" @@ -81097,6 +81105,14 @@ "text": "<", "kind": "punctuation" }, + { + "text": "out", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, { "text": "T", "kind": "typeParameterName" @@ -90261,6 +90277,14 @@ "text": "<", "kind": "punctuation" }, + { + "text": "out", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, { "text": "T", "kind": "typeParameterName" @@ -90568,6 +90592,14 @@ "text": "<", "kind": "punctuation" }, + { + "text": "out", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, { "text": "T", "kind": "typeParameterName" diff --git a/tests/baselines/reference/esNextWeakRefs_IterableWeakMap.types b/tests/baselines/reference/esNextWeakRefs_IterableWeakMap.types index b409385e2c46e..d53b79137fc27 100644 --- a/tests/baselines/reference/esNextWeakRefs_IterableWeakMap.types +++ b/tests/baselines/reference/esNextWeakRefs_IterableWeakMap.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/esNextWeakRefs_IterableWeakMap.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === esNextWeakRefs_IterableWeakMap.ts === /** `static #cleanup` */ const IterableWeakMap_cleanup = ({ ref, set }: { diff --git a/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc b/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc index 0971205dbcaaf..5462d0af44874 100644 --- a/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc @@ -192,7 +192,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -245,7 +245,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -352,7 +352,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -404,7 +404,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -456,7 +456,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -508,7 +508,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|Promise|] { +// <|interface [|Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. diff --git a/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc b/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc index f84caf2e46250..bac40cf939f9e 100644 --- a/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc @@ -12,7 +12,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|{| defId: 1 |}Promise|] { +// <|interface [|{| defId: 1 |}Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. @@ -73,7 +73,7 @@ // /** // * Represents the completion of an asynchronous operation // */ -// <|interface [|{| defId: 1 |}Promise|] { +// <|interface [|{| defId: 1 |}Promise|] { // /** // * Attaches callbacks for the resolution and/or rejection of the Promise. // * @param onfulfilled The callback to execute when the Promise is resolved. diff --git a/tests/baselines/reference/importTag24.types b/tests/baselines/reference/importTag24.types index 1a4387b3d0ca8..24d114075ce73 100644 --- a/tests/baselines/reference/importTag24.types +++ b/tests/baselines/reference/importTag24.types @@ -1,9 +1,5 @@ //// [tests/cases/conformance/jsdoc/importTag24.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === types.d.ts === export type Foo = string; >Foo : string diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types index e20de1c2bbd86..c4a3eace14466 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types @@ -1,8 +1,5 @@ //// [tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts] //// -=== Performance Stats === -Type Count: 1,000 - === inferFromGenericFunctionReturnTypes3.ts === // Repros from #5487 diff --git a/tests/baselines/reference/inferTypes1.types b/tests/baselines/reference/inferTypes1.types index 7fc95b8e2fef0..33d5e8d331d6d 100644 --- a/tests/baselines/reference/inferTypes1.types +++ b/tests/baselines/reference/inferTypes1.types @@ -1,9 +1,5 @@ //// [tests/cases/conformance/types/conditional/inferTypes1.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 1,000 - === inferTypes1.ts === type Unpacked = >Unpacked : Unpacked diff --git a/tests/baselines/reference/mapGroupBy.types b/tests/baselines/reference/mapGroupBy.types index dde7f5accd85e..090af0f19de64 100644 --- a/tests/baselines/reference/mapGroupBy.types +++ b/tests/baselines/reference/mapGroupBy.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/mapGroupBy.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === mapGroupBy.ts === const basic = Map.groupBy([0, 2, 8], x => x < 5 ? 'small' : 'large'); >basic : Map<"small" | "large", number[]> diff --git a/tests/baselines/reference/narrowingPastLastAssignment.types b/tests/baselines/reference/narrowingPastLastAssignment.types index f2c62a10d1381..5fee80992943b 100644 --- a/tests/baselines/reference/narrowingPastLastAssignment.types +++ b/tests/baselines/reference/narrowingPastLastAssignment.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/narrowingPastLastAssignment.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === narrowingPastLastAssignment.ts === function action(f: Function) {} >action : (f: Function) => void diff --git a/tests/baselines/reference/objectGroupBy.types b/tests/baselines/reference/objectGroupBy.types index f836f949d68a4..ec9a37f131b20 100644 --- a/tests/baselines/reference/objectGroupBy.types +++ b/tests/baselines/reference/objectGroupBy.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/objectGroupBy.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === objectGroupBy.ts === const basic = Object.groupBy([0, 2, 8], x => x < 5 ? 'small' : 'large'); >basic : Partial> diff --git a/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types index 61141eebd4c63..25270ffaee519 100644 --- a/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types +++ b/tests/baselines/reference/parenthesizedJSDocCastAtReturnStatement.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/parenthesizedJSDocCastAtReturnStatement.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === index.js === /** @type {Map>} */ const cache = new Map() diff --git a/tests/baselines/reference/quickinfoVerbosityLibType.baseline b/tests/baselines/reference/quickinfoVerbosityLibType.baseline index d4ec5e2e93ab7..9eb897a61b0cf 100644 --- a/tests/baselines/reference/quickinfoVerbosityLibType.baseline +++ b/tests/baselines/reference/quickinfoVerbosityLibType.baseline @@ -38,7 +38,7 @@ // type Foo = Promise; // ^^^^^^^ // | ---------------------------------------------------------------------- -// | interface Promise +// | interface Promise // | Represents the completion of an asynchronous operation // | (verbosity level: 0) // | ---------------------------------------------------------------------- @@ -490,6 +490,14 @@ "text": "<", "kind": "punctuation" }, + { + "text": "out", + "kind": "keyword" + }, + { + "text": " ", + "kind": "space" + }, { "text": "T", "kind": "typeParameterName" diff --git a/tests/baselines/reference/returnConditionalExpressionJSDocCast.types b/tests/baselines/reference/returnConditionalExpressionJSDocCast.types index 4b98f032cb8e9..39ad0ec09fd78 100644 --- a/tests/baselines/reference/returnConditionalExpressionJSDocCast.types +++ b/tests/baselines/reference/returnConditionalExpressionJSDocCast.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/returnConditionalExpressionJSDocCast.ts] //// -=== Performance Stats === -Type Count: 1,000 -Instantiation count: 2,500 - === file.js === // Don't peek into conditional return expression if it's wrapped in a cast /** @type {Map} */ diff --git a/tests/baselines/reference/substitutionTypePassedToExtends.types b/tests/baselines/reference/substitutionTypePassedToExtends.types index 102d4d17d567f..c8aee67f83cec 100644 --- a/tests/baselines/reference/substitutionTypePassedToExtends.types +++ b/tests/baselines/reference/substitutionTypePassedToExtends.types @@ -1,9 +1,5 @@ //// [tests/cases/compiler/substitutionTypePassedToExtends.ts] //// -=== Performance Stats === -Type Count: 500 -> 1,000 -Instantiation count: 100 -> 2,500 - === substitutionTypePassedToExtends.ts === type Foo1 = [A, B] extends unknown[][] ? Bar1<[A, B]> : 'else' >Foo1 : Foo1 diff --git a/tests/baselines/reference/typeParameterConstModifiersReturnsAndYields.types b/tests/baselines/reference/typeParameterConstModifiersReturnsAndYields.types index e5355c2453066..ac6b9e882df5a 100644 --- a/tests/baselines/reference/typeParameterConstModifiersReturnsAndYields.types +++ b/tests/baselines/reference/typeParameterConstModifiersReturnsAndYields.types @@ -1,7 +1,7 @@ //// [tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterConstModifiersReturnsAndYields.ts] //// === Performance Stats === -Type Count: 2,500 +Type Count: 1,000 Instantiation count: 2,500 === typeParameterConstModifiersReturnsAndYields.ts ===