Update LKG.
This commit is contained in:
parent
e7174b12c0
commit
22473247fa
4
lib/lib.es2015.iterable.d.ts
vendored
4
lib/lib.es2015.iterable.d.ts
vendored
|
@ -223,7 +223,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
|
||||
all<TAll>(values: Iterable<TAll>): Promise<(awaited TAll)[]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
||||
|
@ -231,7 +231,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
|
||||
race<T>(values: Iterable<T>): Promise<awaited T>;
|
||||
}
|
||||
|
||||
declare namespace Reflect {
|
||||
|
|
28
lib/lib.es2015.promise.d.ts
vendored
28
lib/lib.es2015.promise.d.ts
vendored
|
@ -38,7 +38,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5, awaited T6, awaited T7, awaited T8, awaited T9, awaited T10]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -46,7 +46,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1, T2, T3, T4, T5, T6, T7, T8, T9]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5, awaited T6, awaited T7, awaited T8, awaited T9]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -54,7 +54,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
||||
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1, T2, T3, T4, T5, T6, T7, T8]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5, awaited T6, awaited T7, awaited T8]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -62,7 +62,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
||||
all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1, T2, T3, T4, T5, T6, T7]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5, awaited T6, awaited T7]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -70,7 +70,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
||||
all<T1, T2, T3, T4, T5, T6>(values: readonly [T1, T2, T3, T4, T5, T6]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5, awaited T6]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -78,7 +78,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
||||
all<T1, T2, T3, T4, T5>(values: readonly [T1, T2, T3, T4, T5]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4, awaited T5]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -86,7 +86,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
|
||||
all<T1, T2, T3, T4>(values: readonly [T1, T2, T3, T4]): Promise<[awaited T1, awaited T2, awaited T3, awaited T4]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -94,7 +94,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
||||
all<T1, T2, T3>(values: readonly [T1, T2, T3]): Promise<[awaited T1, awaited T2, awaited T3]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -102,7 +102,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
||||
all<T1, T2>(values: readonly [T1, T2]): Promise<[awaited T1, awaited T2]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||
|
@ -110,7 +110,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
|
||||
all<T>(values: readonly T[]): Promise<(awaited T)[]>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
||||
|
@ -118,7 +118,7 @@ interface PromiseConstructor {
|
|||
* @param values An array of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
|
||||
race<T>(values: readonly T[]): Promise<awaited T>;
|
||||
|
||||
/**
|
||||
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
||||
|
@ -126,21 +126,21 @@ interface PromiseConstructor {
|
|||
* @param values An iterable of Promises.
|
||||
* @returns A new Promise.
|
||||
*/
|
||||
race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
|
||||
race<T>(values: Iterable<T>): Promise<awaited T>;
|
||||
|
||||
/**
|
||||
* Creates a new rejected promise for the provided reason.
|
||||
* @param reason The reason the promise was rejected.
|
||||
* @returns A new rejected Promise.
|
||||
*/
|
||||
reject<T = never>(reason?: any): Promise<T>;
|
||||
reject<T = never>(reason?: any): Promise<awaited T>;
|
||||
|
||||
/**
|
||||
* Creates a new resolved promise for the provided value.
|
||||
* @param value A promise.
|
||||
* @returns A promise whose internal state matches the provided promise.
|
||||
*/
|
||||
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
||||
resolve<T>(value: T): Promise<awaited T>;
|
||||
|
||||
/**
|
||||
* Creates a new resolved promise .
|
||||
|
|
2
lib/lib.es2015.symbol.wellknown.d.ts
vendored
2
lib/lib.es2015.symbol.wellknown.d.ts
vendored
|
@ -91,7 +91,7 @@ interface Array<T> {
|
|||
* Returns an object whose properties have the value 'true'
|
||||
* when they will be absent when used in a 'with' statement.
|
||||
*/
|
||||
[Symbol.unscopables]: {
|
||||
[Symbol.unscopables](): {
|
||||
copyWithin: boolean;
|
||||
entries: boolean;
|
||||
fill: boolean;
|
||||
|
|
4
lib/lib.es2019.symbol.d.ts
vendored
4
lib/lib.es2019.symbol.d.ts
vendored
|
@ -20,7 +20,7 @@ and limitations under the License.
|
|||
|
||||
interface Symbol {
|
||||
/**
|
||||
* expose the [[Description]] internal slot of a symbol directly
|
||||
* Expose the [[Description]] internal slot of a symbol directly.
|
||||
*/
|
||||
readonly description: string;
|
||||
readonly description: string | undefined;
|
||||
}
|
||||
|
|
18
lib/lib.es5.d.ts
vendored
18
lib/lib.es5.d.ts
vendored
|
@ -986,7 +986,7 @@ declare var Error: ErrorConstructor;
|
|||
interface EvalError extends Error {
|
||||
}
|
||||
|
||||
interface EvalErrorConstructor {
|
||||
interface EvalErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): EvalError;
|
||||
(message?: string): EvalError;
|
||||
readonly prototype: EvalError;
|
||||
|
@ -997,7 +997,7 @@ declare var EvalError: EvalErrorConstructor;
|
|||
interface RangeError extends Error {
|
||||
}
|
||||
|
||||
interface RangeErrorConstructor {
|
||||
interface RangeErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): RangeError;
|
||||
(message?: string): RangeError;
|
||||
readonly prototype: RangeError;
|
||||
|
@ -1008,7 +1008,7 @@ declare var RangeError: RangeErrorConstructor;
|
|||
interface ReferenceError extends Error {
|
||||
}
|
||||
|
||||
interface ReferenceErrorConstructor {
|
||||
interface ReferenceErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): ReferenceError;
|
||||
(message?: string): ReferenceError;
|
||||
readonly prototype: ReferenceError;
|
||||
|
@ -1019,7 +1019,7 @@ declare var ReferenceError: ReferenceErrorConstructor;
|
|||
interface SyntaxError extends Error {
|
||||
}
|
||||
|
||||
interface SyntaxErrorConstructor {
|
||||
interface SyntaxErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): SyntaxError;
|
||||
(message?: string): SyntaxError;
|
||||
readonly prototype: SyntaxError;
|
||||
|
@ -1030,7 +1030,7 @@ declare var SyntaxError: SyntaxErrorConstructor;
|
|||
interface TypeError extends Error {
|
||||
}
|
||||
|
||||
interface TypeErrorConstructor {
|
||||
interface TypeErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): TypeError;
|
||||
(message?: string): TypeError;
|
||||
readonly prototype: TypeError;
|
||||
|
@ -1041,7 +1041,7 @@ declare var TypeError: TypeErrorConstructor;
|
|||
interface URIError extends Error {
|
||||
}
|
||||
|
||||
interface URIErrorConstructor {
|
||||
interface URIErrorConstructor extends ErrorConstructor {
|
||||
new(message?: string): URIError;
|
||||
(message?: string): URIError;
|
||||
readonly prototype: URIError;
|
||||
|
@ -1407,7 +1407,7 @@ interface PromiseLike<T> {
|
|||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of which ever callback is executed.
|
||||
*/
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: awaited T) => TResult1) | undefined | null, onrejected?: ((reason: any) => TResult2) | undefined | null): PromiseLike<awaited TResult1 | awaited TResult2>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1420,14 +1420,14 @@ interface Promise<T> {
|
|||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of which ever callback is executed.
|
||||
*/
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: awaited T) => TResult1) | undefined | null, onrejected?: ((reason: any) => TResult2) | undefined | null): Promise<awaited TResult1 | awaited TResult2>;
|
||||
|
||||
/**
|
||||
* Attaches a callback for only the rejection of the Promise.
|
||||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of the callback.
|
||||
*/
|
||||
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
||||
catch<TResult = never>(onrejected?: ((reason: any) => TResult) | undefined | null): Promise<awaited T | awaited TResult>;
|
||||
}
|
||||
|
||||
interface ArrayLike<T> {
|
||||
|
|
4
lib/lib.esnext.bigint.d.ts
vendored
4
lib/lib.esnext.bigint.d.ts
vendored
|
@ -280,7 +280,7 @@ interface BigInt64Array {
|
|||
* @param begin The index of the beginning of the array.
|
||||
* @param end The index of the end of the array.
|
||||
*/
|
||||
subarray(begin: number, end?: number): BigInt64Array;
|
||||
subarray(begin?: number, end?: number): BigInt64Array;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(): string;
|
||||
|
@ -549,7 +549,7 @@ interface BigUint64Array {
|
|||
* @param begin The index of the beginning of the array.
|
||||
* @param end The index of the end of the array.
|
||||
*/
|
||||
subarray(begin: number, end?: number): BigUint64Array;
|
||||
subarray(begin?: number, end?: number): BigUint64Array;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(): string;
|
||||
|
|
38
lib/protocol.d.ts
vendored
38
lib/protocol.d.ts
vendored
|
@ -146,6 +146,16 @@ declare namespace ts.server.protocol {
|
|||
* Contains extra information that plugin can include to be passed on
|
||||
*/
|
||||
metadata?: unknown;
|
||||
/**
|
||||
* Exposes information about the performance of this request-response pair.
|
||||
*/
|
||||
performanceData?: PerformanceData;
|
||||
}
|
||||
interface PerformanceData {
|
||||
/**
|
||||
* Time spent updating the program graph, in milliseconds.
|
||||
*/
|
||||
updateGraphDurationMs?: number;
|
||||
}
|
||||
/**
|
||||
* Arguments for FileRequest messages.
|
||||
|
@ -961,6 +971,16 @@ declare namespace ts.server.protocol {
|
|||
* compiler settings.
|
||||
*/
|
||||
type ExternalProjectCompilerOptions = CompilerOptions & CompileOnSaveMixin & WatchOptions;
|
||||
interface FileWithProjectReferenceRedirectInfo {
|
||||
/**
|
||||
* Name of file
|
||||
*/
|
||||
fileName: string;
|
||||
/**
|
||||
* True if the file is primarily included in a referenced project
|
||||
*/
|
||||
isSourceOfProjectReferenceRedirect: boolean;
|
||||
}
|
||||
/**
|
||||
* Represents a set of changes that happen in project
|
||||
*/
|
||||
|
@ -968,15 +988,20 @@ declare namespace ts.server.protocol {
|
|||
/**
|
||||
* List of added files
|
||||
*/
|
||||
added: string[];
|
||||
added: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of removed files
|
||||
*/
|
||||
removed: string[];
|
||||
removed: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of updated files
|
||||
*/
|
||||
updated: string[];
|
||||
updated: string[] | FileWithProjectReferenceRedirectInfo[];
|
||||
/**
|
||||
* List of files that have had their project reference redirect status updated
|
||||
* Only provided when the synchronizeProjectList request has includeProjectReferenceRedirectInfo set to true
|
||||
*/
|
||||
updatedRedirects?: FileWithProjectReferenceRedirectInfo[];
|
||||
}
|
||||
/**
|
||||
* Information found in a configure request.
|
||||
|
@ -1436,7 +1461,7 @@ declare namespace ts.server.protocol {
|
|||
command: CommandTypes.Formatonkey;
|
||||
arguments: FormatOnKeyRequestArgs;
|
||||
}
|
||||
type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<";
|
||||
type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<" | "#";
|
||||
/**
|
||||
* Arguments for completions messages.
|
||||
*/
|
||||
|
@ -1553,6 +1578,11 @@ declare namespace ts.server.protocol {
|
|||
* Then either that enum/class or a namespace containing it will be the recommended symbol.
|
||||
*/
|
||||
isRecommended?: true;
|
||||
/**
|
||||
* If true, this completion was generated from traversing the name table of an unchecked JS file,
|
||||
* and therefore may not be accurate.
|
||||
*/
|
||||
isFromUncheckedFile?: true;
|
||||
}
|
||||
/**
|
||||
* Additional completion entry details, available on demand
|
||||
|
|
Loading…
Reference in a new issue