typescript
Advanced tools
Comparing version 5.2.2 to 5.3.2
@@ -63,3 +63,3 @@ /*! ***************************************************************************** | ||
const namePrefix = cancellationPipeName.slice(0, -1); | ||
if (namePrefix.length === 0 || namePrefix.indexOf("*") >= 0) { | ||
if (namePrefix.length === 0 || namePrefix.includes("*")) { | ||
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); | ||
@@ -66,0 +66,0 @@ } |
@@ -27,4 +27,3 @@ /*! ***************************************************************************** | ||
| ClassFieldDecoratorContext | ||
| ClassAccessorDecoratorContext | ||
; | ||
| ClassAccessorDecoratorContext; | ||
@@ -36,9 +35,7 @@ /** | ||
| ClassDecoratorContext | ||
| ClassMemberDecoratorContext | ||
; | ||
| ClassMemberDecoratorContext; | ||
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object; | ||
type DecoratorMetadata = | ||
typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; | ||
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; | ||
@@ -45,0 +42,0 @@ /** |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
interface Map<K, V> { | ||
clear(): void; | ||
@@ -51,3 +50,3 @@ /** | ||
interface MapConstructor { | ||
new(): Map<any, any>; | ||
new (): Map<any, any>; | ||
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
@@ -54,0 +53,0 @@ readonly prototype: Map<any, any>; |
@@ -556,3 +556,3 @@ /*! ***************************************************************************** | ||
*/ | ||
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string; | ||
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string; | ||
} |
@@ -158,7 +158,7 @@ /*! ***************************************************************************** | ||
interface MapConstructor { | ||
new(): Map<any, any>; | ||
new (): Map<any, any>; | ||
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>; | ||
} | ||
interface WeakMap<K extends WeakKey, V> { } | ||
interface WeakMap<K extends WeakKey, V> {} | ||
@@ -211,3 +211,3 @@ interface WeakMapConstructor { | ||
interface WeakSet<T extends WeakKey> { } | ||
interface WeakSet<T extends WeakKey> {} | ||
@@ -218,3 +218,3 @@ interface WeakSetConstructor { | ||
interface Promise<T> { } | ||
interface Promise<T> {} | ||
@@ -321,3 +321,2 @@ interface PromiseConstructor { | ||
/** | ||
@@ -324,0 +323,0 @@ * Creates an array from an array-like or iterable object. |
@@ -39,3 +39,3 @@ /*! ***************************************************************************** | ||
*/ | ||
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>; | ||
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; | ||
@@ -42,0 +42,0 @@ // see: lib.es2015.iterable.d.ts |
@@ -46,2 +46,2 @@ /*! ***************************************************************************** | ||
declare var Symbol: SymbolConstructor; | ||
declare var Symbol: SymbolConstructor; |
@@ -116,2 +116,2 @@ /*! ***************************************************************************** | ||
includes(searchElement: number, fromIndex?: number): boolean; | ||
} | ||
} |
@@ -20,2 +20,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2015" /> | ||
/// <reference lib="es2016.array.include" /> | ||
/// <reference lib="es2016.array.include" /> |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,15 +20,14 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
day: any | ||
dayPeriod: any | ||
era: any | ||
hour: any | ||
literal: any | ||
minute: any | ||
month: any | ||
second: any | ||
timeZoneName: any | ||
weekday: any | ||
year: any | ||
day: any; | ||
dayPeriod: any; | ||
era: any; | ||
hour: any; | ||
literal: any; | ||
minute: any; | ||
month: any; | ||
second: any; | ||
timeZoneName: any; | ||
weekday: any; | ||
year: any; | ||
} | ||
@@ -35,0 +34,0 @@ |
@@ -24,3 +24,3 @@ /*! ***************************************************************************** | ||
*/ | ||
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[]; | ||
values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[]; | ||
@@ -37,3 +37,3 @@ /** | ||
*/ | ||
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][]; | ||
entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][]; | ||
@@ -50,3 +50,3 @@ /** | ||
*/ | ||
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor }; | ||
getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; }; | ||
} |
@@ -43,2 +43,2 @@ /*! ***************************************************************************** | ||
[Symbol.asyncIterator](): AsyncIterableIterator<T>; | ||
} | ||
} |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories | ||
@@ -56,3 +55,3 @@ type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[]; | ||
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; | ||
}; | ||
@@ -59,0 +58,0 @@ |
@@ -29,3 +29,3 @@ /*! ***************************************************************************** | ||
*/ | ||
finally(onfinally?: (() => void) | undefined | null): Promise<T> | ||
finally(onfinally?: (() => void) | undefined | null): Promise<T>; | ||
} |
@@ -21,4 +21,4 @@ /*! ***************************************************************************** | ||
groups?: { | ||
[key: string]: string | ||
} | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -28,4 +28,4 @@ | ||
groups?: { | ||
[key: string]: string | ||
} | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -39,2 +39,2 @@ | ||
readonly dotAll: boolean; | ||
} | ||
} |
@@ -20,10 +20,8 @@ /*! ***************************************************************************** | ||
type FlatArray<Arr, Depth extends number> = { | ||
"done": Arr, | ||
"recur": Arr extends ReadonlyArray<infer InnerArr> | ||
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]> | ||
: Arr | ||
done: Arr; | ||
recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]> | ||
: Arr; | ||
}[Depth extends -1 ? "done" : "recur"]; | ||
interface ReadonlyArray<T> { | ||
/** | ||
@@ -39,8 +37,7 @@ * Calls a defined callback function on each element of an array. Then, flattens the result into | ||
*/ | ||
flatMap<U, This = undefined> ( | ||
flatMap<U, This = undefined>( | ||
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, | ||
thisArg?: This | ||
): U[] | ||
thisArg?: This, | ||
): U[]; | ||
/** | ||
@@ -54,8 +51,7 @@ * Returns a new array with all sub-array elements concatenated into it recursively up to the | ||
this: A, | ||
depth?: D | ||
): FlatArray<A, D>[] | ||
} | ||
depth?: D, | ||
): FlatArray<A, D>[]; | ||
} | ||
interface Array<T> { | ||
/** | ||
@@ -71,6 +67,6 @@ * Calls a defined callback function on each element of an array. Then, flattens the result into | ||
*/ | ||
flatMap<U, This = undefined> ( | ||
flatMap<U, This = undefined>( | ||
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, | ||
thisArg?: This | ||
): U[] | ||
thisArg?: This, | ||
): U[]; | ||
@@ -85,4 +81,4 @@ /** | ||
this: A, | ||
depth?: D | ||
): FlatArray<A, D>[] | ||
depth?: D, | ||
): FlatArray<A, D>[]; | ||
} |
@@ -21,4 +21,4 @@ /*! ***************************************************************************** | ||
interface DateTimeFormatPartTypesRegistry { | ||
unknown: any | ||
unknown: any; | ||
} | ||
} |
@@ -26,3 +26,3 @@ /*! ***************************************************************************** | ||
*/ | ||
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T }; | ||
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; }; | ||
@@ -29,0 +29,0 @@ /** |
@@ -392,5 +392,5 @@ /*! ***************************************************************************** | ||
readonly prototype: BigInt64Array; | ||
new(length?: number): BigInt64Array; | ||
new(array: Iterable<bigint>): BigInt64Array; | ||
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; | ||
new (length?: number): BigInt64Array; | ||
new (array: Iterable<bigint>): BigInt64Array; | ||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; | ||
@@ -665,5 +665,5 @@ /** The size in bytes of each element in the array. */ | ||
readonly prototype: BigUint64Array; | ||
new(length?: number): BigUint64Array; | ||
new(array: Iterable<bigint>): BigUint64Array; | ||
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; | ||
new (length?: number): BigUint64Array; | ||
new (array: Iterable<bigint>): BigUint64Array; | ||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; | ||
@@ -725,3 +725,3 @@ /** The size in bytes of each element in the array. */ | ||
declare namespace Intl{ | ||
declare namespace Intl { | ||
interface NumberFormat { | ||
@@ -728,0 +728,0 @@ format(value: number | bigint): string; |
@@ -42,2 +42,2 @@ /*! ***************************************************************************** | ||
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; | ||
} | ||
} |
@@ -21,3 +21,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
/** | ||
@@ -62,3 +61,3 @@ * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition. | ||
*/ | ||
type RelativeTimeFormatUnitSingular = | ||
type RelativeTimeFormatUnitSingular = | ||
| "year" | ||
@@ -145,10 +144,10 @@ | "quarter" | ||
| { | ||
type: "literal"; | ||
value: string; | ||
} | ||
type: "literal"; | ||
value: string; | ||
} | ||
| { | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
@@ -224,3 +223,3 @@ interface RelativeTimeFormat { | ||
*/ | ||
new( | ||
new ( | ||
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], | ||
@@ -417,3 +416,3 @@ options?: RelativeTimeFormatOptions, | ||
*/ | ||
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; | ||
new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; | ||
@@ -433,5 +432,4 @@ /** | ||
*/ | ||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[]; | ||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): BCP47LanguageTag[]; | ||
}; | ||
} |
@@ -38,3 +38,3 @@ /*! ***************************************************************************** | ||
*/ | ||
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>; | ||
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>; | ||
@@ -41,0 +41,0 @@ /** |
@@ -20,6 +20,5 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
fractionalSecond: any | ||
} | ||
fractionalSecond: any; | ||
} | ||
@@ -35,3 +34,3 @@ interface DateTimeFormatOptions { | ||
interface DateTimeRangeFormatPart extends DateTimeFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
source: "startRange" | "endRange" | "shared"; | ||
} | ||
@@ -119,3 +118,3 @@ | ||
*/ | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[]; | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[]; | ||
@@ -150,3 +149,3 @@ /** | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; | ||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; | ||
@@ -153,0 +152,0 @@ /** |
@@ -20,7 +20,7 @@ /*! ***************************************************************************** | ||
interface AggregateError extends Error { | ||
errors: any[] | ||
errors: any[]; | ||
} | ||
interface AggregateErrorConstructor { | ||
new(errors: Iterable<any>, message?: string): AggregateError; | ||
new (errors: Iterable<any>, message?: string): AggregateError; | ||
(errors: Iterable<any>, message?: string): AggregateError; | ||
@@ -48,3 +48,3 @@ readonly prototype: AggregateError; | ||
*/ | ||
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>> | ||
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; | ||
} |
@@ -38,3 +38,3 @@ /*! ***************************************************************************** | ||
*/ | ||
new<T extends WeakKey>(target: T): WeakRef<T>; | ||
new <T extends WeakKey>(target: T): WeakRef<T>; | ||
} | ||
@@ -74,5 +74,5 @@ | ||
*/ | ||
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; | ||
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; | ||
} | ||
declare var FinalizationRegistry: FinalizationRegistryConstructor; |
@@ -66,3 +66,3 @@ /*! ***************************************************************************** | ||
message?: string, | ||
options?: ErrorOptions | ||
options?: ErrorOptions, | ||
): AggregateError; | ||
@@ -72,4 +72,4 @@ ( | ||
message?: string, | ||
options?: ErrorOptions | ||
options?: ErrorOptions, | ||
): AggregateError; | ||
} |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
/** | ||
@@ -94,3 +93,3 @@ * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter. | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter; | ||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter; | ||
@@ -97,0 +96,0 @@ /** |
@@ -28,3 +28,3 @@ /*! ***************************************************************************** | ||
*/ | ||
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; | ||
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; | ||
} |
@@ -100,7 +100,7 @@ /*! ***************************************************************************** | ||
predicate: (value: T, index: number, array: readonly T[]) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
findLast( | ||
predicate: (value: T, index: number, array: readonly T[]) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): T | undefined; | ||
@@ -119,3 +119,3 @@ | ||
predicate: (value: T, index: number, array: readonly T[]) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -182,9 +182,9 @@ | ||
index: number, | ||
array: Int8Array | ||
array: Int8Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
findLast( | ||
predicate: (value: number, index: number, array: Int8Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -203,3 +203,3 @@ | ||
predicate: (value: number, index: number, array: Int8Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -216,3 +216,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -249,9 +249,9 @@ * const myNums = Uint8Array.from([11, 2, 22, 1]); | ||
index: number, | ||
array: Uint8Array | ||
array: Uint8Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
findLast( | ||
predicate: (value: number, index: number, array: Uint8Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -270,3 +270,3 @@ | ||
predicate: (value: number, index: number, array: Uint8Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -283,3 +283,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -316,5 +316,5 @@ * const myNums = Uint8Array.from([11, 2, 22, 1]); | ||
index: number, | ||
array: Uint8ClampedArray | ||
array: Uint8ClampedArray, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -325,5 +325,5 @@ findLast( | ||
index: number, | ||
array: Uint8ClampedArray | ||
array: Uint8ClampedArray, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -344,5 +344,5 @@ | ||
index: number, | ||
array: Uint8ClampedArray | ||
array: Uint8ClampedArray, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -359,3 +359,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -392,9 +392,9 @@ * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]); | ||
index: number, | ||
array: Int16Array | ||
array: Int16Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
findLast( | ||
predicate: (value: number, index: number, array: Int16Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -413,3 +413,3 @@ | ||
predicate: (value: number, index: number, array: Int16Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -426,3 +426,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -459,5 +459,5 @@ * const myNums = Int16Array.from([11, 2, -22, 1]); | ||
index: number, | ||
array: Uint16Array | ||
array: Uint16Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -468,5 +468,5 @@ findLast( | ||
index: number, | ||
array: Uint16Array | ||
array: Uint16Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -487,5 +487,5 @@ | ||
index: number, | ||
array: Uint16Array | ||
array: Uint16Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -502,3 +502,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -535,9 +535,9 @@ * const myNums = Uint16Array.from([11, 2, 22, 1]); | ||
index: number, | ||
array: Int32Array | ||
array: Int32Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
findLast( | ||
predicate: (value: number, index: number, array: Int32Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -556,3 +556,3 @@ | ||
predicate: (value: number, index: number, array: Int32Array) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -569,3 +569,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -602,5 +602,5 @@ * const myNums = Int32Array.from([11, 2, -22, 1]); | ||
index: number, | ||
array: Uint32Array | ||
array: Uint32Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -611,5 +611,5 @@ findLast( | ||
index: number, | ||
array: Uint32Array | ||
array: Uint32Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -630,5 +630,5 @@ | ||
index: number, | ||
array: Uint32Array | ||
array: Uint32Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -645,3 +645,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -678,5 +678,5 @@ * const myNums = Uint32Array.from([11, 2, 22, 1]); | ||
index: number, | ||
array: Float32Array | ||
array: Float32Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -687,5 +687,5 @@ findLast( | ||
index: number, | ||
array: Float32Array | ||
array: Float32Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -706,5 +706,5 @@ | ||
index: number, | ||
array: Float32Array | ||
array: Float32Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -721,3 +721,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -754,5 +754,5 @@ * const myNums = Float32Array.from([11.25, 2, -22.5, 1]); | ||
index: number, | ||
array: Float64Array | ||
array: Float64Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -763,5 +763,5 @@ findLast( | ||
index: number, | ||
array: Float64Array | ||
array: Float64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number | undefined; | ||
@@ -782,5 +782,5 @@ | ||
index: number, | ||
array: Float64Array | ||
array: Float64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -797,3 +797,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -830,5 +830,5 @@ * const myNums = Float64Array.from([11.25, 2, -22.5, 1]); | ||
index: number, | ||
array: BigInt64Array | ||
array: BigInt64Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -839,5 +839,5 @@ findLast( | ||
index: number, | ||
array: BigInt64Array | ||
array: BigInt64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): bigint | undefined; | ||
@@ -858,5 +858,5 @@ | ||
index: number, | ||
array: BigInt64Array | ||
array: BigInt64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -873,3 +873,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -906,5 +906,5 @@ * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]); | ||
index: number, | ||
array: BigUint64Array | ||
array: BigUint64Array, | ||
) => value is S, | ||
thisArg?: any | ||
thisArg?: any, | ||
): S | undefined; | ||
@@ -915,5 +915,5 @@ findLast( | ||
index: number, | ||
array: BigUint64Array | ||
array: BigUint64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): bigint | undefined; | ||
@@ -934,5 +934,5 @@ | ||
index: number, | ||
array: BigUint64Array | ||
array: BigUint64Array, | ||
) => unknown, | ||
thisArg?: any | ||
thisArg?: any, | ||
): number; | ||
@@ -949,3 +949,3 @@ | ||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive | ||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. | ||
* value otherwise. If omitted, the elements are sorted in ascending order. | ||
* ```ts | ||
@@ -952,0 +952,0 @@ * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]); |
@@ -91,9 +91,9 @@ /*! ***************************************************************************** | ||
* using stack = new DisposableStack(); | ||
* | ||
* | ||
* // get first resource | ||
* this.#res1 = stack.use(getResource1()); | ||
* | ||
* | ||
* // get second resource. If this fails, both `stack` and `#res1` will be disposed. | ||
* this.#res2 = stack.use(getResource2()); | ||
* | ||
* | ||
* // all operations succeeded, move resources out of `stack` so that they aren't disposed | ||
@@ -103,3 +103,3 @@ * // when constructor exits | ||
* } | ||
* | ||
* | ||
* [Symbol.dispose]() { | ||
@@ -117,3 +117,3 @@ * this.#disposables.dispose(); | ||
interface DisposableStackConstructor { | ||
new(): DisposableStack; | ||
new (): DisposableStack; | ||
readonly prototype: DisposableStack; | ||
@@ -161,9 +161,9 @@ } | ||
* using stack = new DisposableStack(); | ||
* | ||
* | ||
* // get first resource | ||
* this.#res1 = stack.use(getResource1()); | ||
* | ||
* | ||
* // get second resource. If this fails, both `stack` and `#res1` will be disposed. | ||
* this.#res2 = stack.use(getResource2()); | ||
* | ||
* | ||
* // all operations succeeded, move resources out of `stack` so that they aren't disposed | ||
@@ -173,3 +173,3 @@ * // when constructor exits | ||
* } | ||
* | ||
* | ||
* [Symbol.dispose]() { | ||
@@ -187,5 +187,5 @@ * this.#disposables.dispose(); | ||
interface AsyncDisposableStackConstructor { | ||
new(): AsyncDisposableStack; | ||
new (): AsyncDisposableStack; | ||
readonly prototype: AsyncDisposableStack; | ||
} | ||
declare var AsyncDisposableStack: AsyncDisposableStackConstructor; |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,10 +20,10 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface NumberRangeFormatPart extends NumberFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
interface NumberRangeFormatPart extends NumberFormatPart { | ||
source: "startRange" | "endRange" | "shared"; | ||
} | ||
interface NumberFormat { | ||
formatRange(start: number | bigint, end: number | bigint): string; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; | ||
} | ||
interface NumberFormat { | ||
formatRange(start: number | bigint, end: number | bigint): string; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; | ||
} | ||
} |
@@ -19,4 +19,2 @@ /*! ***************************************************************************** | ||
///////////////////////////// | ||
@@ -26,3 +24,2 @@ /// Windows Script Host APIS | ||
interface ActiveXObject { | ||
@@ -267,3 +264,3 @@ new (s: string): any; | ||
new <T = any>(safearray: SafeArray<T>): Enumerator<T>; | ||
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>; | ||
new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>; | ||
new <T = any>(collection: any): Enumerator<T>; | ||
@@ -270,0 +267,0 @@ } |
@@ -19,3 +19,2 @@ /*! ***************************************************************************** | ||
///////////////////////////// | ||
@@ -22,0 +21,0 @@ /// WorkerGlobalScope APIs |
@@ -364,3 +364,3 @@ { | ||
"path": "pathjs", | ||
"pdfkit":"pdfkit", | ||
"pdfkit": "pdfkit", | ||
"peer": "peerjs", | ||
@@ -498,2 +498,2 @@ "peg": "pegjs", | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "5.2.2", | ||
"version": "5.3.2", | ||
"license": "Apache-2.0", | ||
@@ -46,3 +46,2 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
"@types/chai": "^4.3.4", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/glob": "^8.1.0", | ||
@@ -64,5 +63,5 @@ "@types/microsoft__typescript-etw": "^0.1.1", | ||
"chokidar": "^3.5.3", | ||
"del": "^6.1.1", | ||
"diff": "^5.1.0", | ||
"esbuild": "^0.18.1", | ||
"dprint": "^0.42.3", | ||
"esbuild": "^0.19.0", | ||
"eslint": "^8.22.0", | ||
@@ -74,3 +73,2 @@ "eslint-formatter-autolinkable-stylish": "^1.2.0", | ||
"fast-xml-parser": "^4.0.11", | ||
"fs-extra": "^9.1.0", | ||
"glob": "^8.1.0", | ||
@@ -84,2 +82,3 @@ "hereby": "^1.6.4", | ||
"node-fetch": "^3.2.10", | ||
"playwright": "^1.38.0", | ||
"source-map-support": "^0.5.21", | ||
@@ -104,2 +103,3 @@ "tslib": "^2.5.0", | ||
"lint": "hereby lint", | ||
"format": "dprint fmt", | ||
"setup-hooks": "node scripts/link-hooks.mjs" | ||
@@ -115,3 +115,4 @@ }, | ||
"source-map-support": false, | ||
"inspector": false | ||
"inspector": false, | ||
"perf_hooks": false | ||
}, | ||
@@ -118,0 +119,0 @@ "packageManager": "npm@8.19.4", |
@@ -5,3 +5,2 @@ | ||
[![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) | ||
[![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7) | ||
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) | ||
@@ -8,0 +7,0 @@ [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) |
@@ -1,8 +0,8 @@ | ||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK --> | ||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK --> | ||
## Security | ||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). | ||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin). | ||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below. | ||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below. | ||
@@ -13,5 +13,5 @@ ## Reporting Security Issues | ||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). | ||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). | ||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). | ||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp). | ||
@@ -32,3 +32,3 @@ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). | ||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. | ||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs. | ||
@@ -41,4 +41,4 @@ ## Preferred Languages | ||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). | ||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd). | ||
<!-- END MICROSOFT SECURITY.MD BLOCK --> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41
32019541
120710
51