diff options
Diffstat (limited to 'cli/tsc/dts/lib.es5.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.es5.d.ts | 97 |
1 files changed, 60 insertions, 37 deletions
diff --git a/cli/tsc/dts/lib.es5.d.ts b/cli/tsc/dts/lib.es5.d.ts index e1fc0f445..870d8a04c 100644 --- a/cli/tsc/dts/lib.es5.d.ts +++ b/cli/tsc/dts/lib.es5.d.ts @@ -332,9 +332,14 @@ interface CallableFunction extends Function { /** * Calls the function with the specified object as the this value and the elements of specified array as the arguments. * @param thisArg The object to be used as the this object. - * @param args An array of argument values to be passed to the function. */ apply<T, R>(this: (this: T) => R, thisArg: T): R; + + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R; /** @@ -348,23 +353,29 @@ interface CallableFunction extends Function { * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg The object to be used as the this object. - * @param args Arguments to bind to the parameters of the function. */ bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>; - bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R; - bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R; - bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R; - bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R; - bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R; } interface NewableFunction extends Function { /** * Calls the function with the specified object as the this value and the elements of specified array as the arguments. * @param thisArg The object to be used as the this object. - * @param args An array of argument values to be passed to the function. */ apply<T>(this: new () => T, thisArg: T): void; + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void; /** @@ -378,14 +389,16 @@ interface NewableFunction extends Function { * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg The object to be used as the this object. - * @param args Arguments to bind to the parameters of the function. */ bind<T>(this: T, thisArg: any): T; - bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R; - bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R; - bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R; - bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R; - bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R; } interface IArguments { @@ -1832,7 +1845,7 @@ interface DataView { interface DataViewConstructor { readonly prototype: DataView; - new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView; + new(buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never }, byteOffset?: number, byteLength?: number): DataView; } declare var DataView: DataViewConstructor; @@ -1867,10 +1880,10 @@ interface Int8Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2149,10 +2162,10 @@ interface Uint8Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2431,10 +2444,10 @@ interface Uint8ClampedArray { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2712,10 +2725,10 @@ interface Int16Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -2994,10 +3007,10 @@ interface Uint16Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3276,10 +3289,10 @@ interface Int32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3558,10 +3571,10 @@ interface Uint32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -3839,10 +3852,10 @@ interface Float32Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -4122,10 +4135,10 @@ interface Float64Array { * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. + * is treated as length+end. If start is omitted, `0` is used. * @param end If not specified, length of the this object is used as its default value. */ - copyWithin(target: number, start: number, end?: number): this; + copyWithin(target: number, start?: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. @@ -4316,12 +4329,21 @@ interface Float64Array { sort(compareFn?: (a: number, b: number) => number): this; /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @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): Float64Array; + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ toString(): string; /** Returns the primitive value of the specified object. */ @@ -4370,11 +4392,12 @@ declare var Float64Array: Float64ArrayConstructor; declare namespace Intl { interface CollatorOptions { - usage?: string | undefined; - localeMatcher?: string | undefined; + usage?: "sort" | "search" | undefined; + localeMatcher?: "lookup" | "best fit" | undefined; numeric?: boolean | undefined; - caseFirst?: string | undefined; - sensitivity?: string | undefined; + caseFirst?: "upper" | "lower" | "false" | undefined; + sensitivity?: "base" | "accent" | "case" | "variant" | undefined; + collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; ignorePunctuation?: boolean | undefined; } |