@types/es6-shim
Advanced tools
Comparing version 0.31.42 to 0.31.43
@@ -13,4 +13,4 @@ // Type definitions for es6-shim v0.31.2 | ||
/** | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
"_es6-shim iterator_"(): Iterator<T>; | ||
@@ -27,4 +27,4 @@ } | ||
/** | ||
* Shim for an ES6 iterable iterator. Not intended for direct use by user code. | ||
*/ | ||
* Shim for an ES6 iterable iterator. Not intended for direct use by user code. | ||
*/ | ||
"_es6-shim iterator_"(): IterableIteratorShim<T>; | ||
@@ -35,14 +35,14 @@ } | ||
/** | ||
* Return the String value whose elements are, in order, the elements in the List elements. | ||
* If length is 0, the empty string is returned. | ||
*/ | ||
* Return the String value whose elements are, in order, the elements in the List elements. | ||
* If length is 0, the empty string is returned. | ||
*/ | ||
fromCodePoint(...codePoints: number[]): string; | ||
/** | ||
* String.raw is intended for use as a tag function of a Tagged Template String. When called | ||
* as such the first argument will be a well formed template call site object and the rest | ||
* parameter will contain the substitution values. | ||
* @param template A well-formed template string call site representation. | ||
* @param substitutions A set of substitution values. | ||
*/ | ||
* String.raw is intended for use as a tag function of a Tagged Template String. When called | ||
* as such the first argument will be a well formed template call site object and the rest | ||
* parameter will contain the substitution values. | ||
* @param template A well-formed template string call site representation. | ||
* @param substitutions A set of substitution values. | ||
*/ | ||
raw(template: TemplateStringsArray, ...substitutions: any[]): string; | ||
@@ -53,44 +53,44 @@ } | ||
/** | ||
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point | ||
* value of the UTF-16 encoded code point starting at the string element at position pos in | ||
* the String resulting from converting this object to a String. | ||
* If there is no element at that position, the result is undefined. | ||
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. | ||
*/ | ||
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point | ||
* value of the UTF-16 encoded code point starting at the string element at position pos in | ||
* the String resulting from converting this object to a String. | ||
* If there is no element at that position, the result is undefined. | ||
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. | ||
*/ | ||
codePointAt(pos: number): number; | ||
/** | ||
* Returns true if searchString appears as a substring of the result of converting this | ||
* object to a String, at one or more positions that are | ||
* greater than or equal to position; otherwise, returns false. | ||
* @param searchString search string | ||
* @param position If position is undefined, 0 is assumed, so as to search all of the String. | ||
*/ | ||
* Returns true if searchString appears as a substring of the result of converting this | ||
* object to a String, at one or more positions that are | ||
* greater than or equal to position; otherwise, returns false. | ||
* @param searchString search string | ||
* @param position If position is undefined, 0 is assumed, so as to search all of the String. | ||
*/ | ||
includes(searchString: string, position?: number): boolean; | ||
/** | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* endPosition – length(this). Otherwise returns false. | ||
*/ | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* endPosition – length(this). Otherwise returns false. | ||
*/ | ||
endsWith(searchString: string, endPosition?: number): boolean; | ||
/** | ||
* Returns a String value that is made from count copies appended together. If count is 0, | ||
* T is the empty String is returned. | ||
* @param count number of copies to append | ||
*/ | ||
* Returns a String value that is made from count copies appended together. If count is 0, | ||
* T is the empty String is returned. | ||
* @param count number of copies to append | ||
*/ | ||
repeat(count: number): string; | ||
/** | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* position. Otherwise returns false. | ||
*/ | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* position. Otherwise returns false. | ||
*/ | ||
startsWith(searchString: string, position?: number): boolean; | ||
/** | ||
* Returns an <a> HTML anchor element and sets the name attribute to the text value | ||
* @param name | ||
*/ | ||
* Returns an <a> HTML anchor element and sets the name attribute to the text value | ||
* @param name | ||
*/ | ||
anchor(name: string): string; | ||
@@ -138,4 +138,4 @@ | ||
/** | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
"_es6-shim iterator_"(): IterableIteratorShim<string>; | ||
@@ -146,33 +146,33 @@ } | ||
/** | ||
* Creates an array from an array-like object. | ||
* @param arrayLike An array-like object to convert to an array. | ||
* @param mapfn A mapping function to call on every element of the array. | ||
* @param thisArg Value of 'this' used to invoke the mapfn. | ||
*/ | ||
* Creates an array from an array-like object. | ||
* @param arrayLike An array-like object to convert to an array. | ||
* @param mapfn A mapping function to call on every element of the array. | ||
* @param thisArg Value of 'this' used to invoke the mapfn. | ||
*/ | ||
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; | ||
/** | ||
* Creates an array from an iterable object. | ||
* @param iterable An iterable object to convert to an array. | ||
* @param mapfn A mapping function to call on every element of the array. | ||
* @param thisArg Value of 'this' used to invoke the mapfn. | ||
*/ | ||
* Creates an array from an iterable object. | ||
* @param iterable An iterable object to convert to an array. | ||
* @param mapfn A mapping function to call on every element of the array. | ||
* @param thisArg Value of 'this' used to invoke the mapfn. | ||
*/ | ||
from<T, U>(iterable: IterableShim<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; | ||
/** | ||
* Creates an array from an array-like object. | ||
* @param arrayLike An array-like object to convert to an array. | ||
*/ | ||
* Creates an array from an array-like object. | ||
* @param arrayLike An array-like object to convert to an array. | ||
*/ | ||
from<T>(arrayLike: ArrayLike<T>): T[]; | ||
/** | ||
* Creates an array from an iterable object. | ||
* @param iterable An iterable object to convert to an array. | ||
*/ | ||
* Creates an array from an iterable object. | ||
* @param iterable An iterable object to convert to an array. | ||
*/ | ||
from<T>(iterable: IterableShim<T>): T[]; | ||
/** | ||
* Returns a new array from a set of elements. | ||
* @param items A set of elements to include in the new array object. | ||
*/ | ||
* Returns a new array from a set of elements. | ||
* @param items A set of elements to include in the new array object. | ||
*/ | ||
of<T>(...items: T[]): T[]; | ||
@@ -183,61 +183,61 @@ } | ||
/** | ||
* Returns the value of the first element in the array where predicate is true, and undefined | ||
* otherwise. | ||
* @param predicate find calls predicate once for each element of the array, in ascending | ||
* order, until it finds one where predicate returns true. If such an element is found, find | ||
* immediately returns that element value. Otherwise, find returns undefined. | ||
* @param thisArg If provided, it will be used as the this value for each invocation of | ||
* predicate. If it is not provided, undefined is used instead. | ||
*/ | ||
* Returns the value of the first element in the array where predicate is true, and undefined | ||
* otherwise. | ||
* @param predicate find calls predicate once for each element of the array, in ascending | ||
* order, until it finds one where predicate returns true. If such an element is found, find | ||
* immediately returns that element value. Otherwise, find returns undefined. | ||
* @param thisArg If provided, it will be used as the this value for each invocation of | ||
* predicate. If it is not provided, undefined is used instead. | ||
*/ | ||
find(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined; | ||
/** | ||
* Returns the index of the first element in the array where predicate is true, and -1 otherwise. | ||
* @param predicate find calls predicate once for each element of the array, in ascending | ||
* order, until it finds one where predicate returns true. If such an element is found, find | ||
* immediately returns that element value. Otherwise, find returns undefined. | ||
* @param thisArg If provided, it will be used as the this value for each invocation of | ||
* predicate. If it is not provided, undefined is used instead. | ||
*/ | ||
* Returns the index of the first element in the array where predicate is true, and -1 otherwise. | ||
* @param predicate find calls predicate once for each element of the array, in ascending | ||
* order, until it finds one where predicate returns true. If such an element is found, find | ||
* immediately returns that element value. Otherwise, find returns undefined. | ||
* @param thisArg If provided, it will be used as the this value for each invocation of | ||
* predicate. If it is not provided, undefined is used instead. | ||
*/ | ||
findIndex(predicate: (value: T) => boolean, thisArg?: any): number; | ||
/** | ||
* Returns the this object after filling the section identified by start and end with value | ||
* @param value value to fill array section with | ||
* @param start index to start filling the array at. If start is negative, it is treated as | ||
* length+start where length is the length of the array. | ||
* @param end index to stop filling the array at. If end is negative, it is treated as | ||
* length+end. | ||
*/ | ||
* Returns the this object after filling the section identified by start and end with value | ||
* @param value value to fill array section with | ||
* @param start index to start filling the array at. If start is negative, it is treated as | ||
* length+start where length is the length of the array. | ||
* @param end index to stop filling the array at. If end is negative, it is treated as | ||
* length+end. | ||
*/ | ||
fill(value: T, start?: number, end?: number): T[]; | ||
/** | ||
* Returns the this object after copying a section of the array identified by start and end | ||
* to the same array starting at position target | ||
* @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. | ||
* @param end If not specified, length of the this object is used as its default value. | ||
*/ | ||
* Returns the this object after copying a section of the array identified by start and end | ||
* to the same array starting at position target | ||
* @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. | ||
* @param end If not specified, length of the this object is used as its default value. | ||
*/ | ||
copyWithin(target: number, start: number, end?: number): T[]; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIteratorShim<[number, T]>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIteratorShim<number>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIteratorShim<T>; | ||
/** | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
* Shim for an ES6 iterable. Not intended for direct use by user code. | ||
*/ | ||
"_es6-shim iterator_"(): IterableIteratorShim<T>; | ||
@@ -248,63 +248,63 @@ } | ||
/** | ||
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 | ||
* that is representable as a Number value, which is approximately: | ||
* 2.2204460492503130808472633361816 x 10−16. | ||
*/ | ||
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 | ||
* that is representable as a Number value, which is approximately: | ||
* 2.2204460492503130808472633361816 x 10−16. | ||
*/ | ||
EPSILON: number; | ||
/** | ||
* Returns true if passed value is finite. | ||
* Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a | ||
* number. Only finite values of the type number, result in true. | ||
* @param number A numeric value. | ||
*/ | ||
* Returns true if passed value is finite. | ||
* Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a | ||
* number. Only finite values of the type number, result in true. | ||
* @param number A numeric value. | ||
*/ | ||
isFinite(number: number): boolean; | ||
/** | ||
* Returns true if the value passed is an integer, false otherwise. | ||
* @param number A numeric value. | ||
*/ | ||
* Returns true if the value passed is an integer, false otherwise. | ||
* @param number A numeric value. | ||
*/ | ||
isInteger(number: number): boolean; | ||
/** | ||
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a | ||
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter | ||
* to a number. Only values of the type number, that are also NaN, result in true. | ||
* @param number A numeric value. | ||
*/ | ||
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a | ||
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter | ||
* to a number. Only values of the type number, that are also NaN, result in true. | ||
* @param number A numeric value. | ||
*/ | ||
isNaN(number: number): boolean; | ||
/** | ||
* Returns true if the value passed is a safe integer. | ||
* @param number A numeric value. | ||
*/ | ||
* Returns true if the value passed is a safe integer. | ||
* @param number A numeric value. | ||
*/ | ||
isSafeInteger(number: number): boolean; | ||
/** | ||
* The value of the largest integer n such that n and n + 1 are both exactly representable as | ||
* a Number value. | ||
* The value of Number.MIN_SAFE_INTEGER is 9007199254740991 2^53 − 1. | ||
*/ | ||
* The value of the largest integer n such that n and n + 1 are both exactly representable as | ||
* a Number value. | ||
* The value of Number.MIN_SAFE_INTEGER is 9007199254740991 2^53 − 1. | ||
*/ | ||
MAX_SAFE_INTEGER: number; | ||
/** | ||
* The value of the smallest integer n such that n and n − 1 are both exactly representable as | ||
* a Number value. | ||
* The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)). | ||
*/ | ||
* The value of the smallest integer n such that n and n − 1 are both exactly representable as | ||
* a Number value. | ||
* The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)). | ||
*/ | ||
MIN_SAFE_INTEGER: number; | ||
/** | ||
* Converts a string to a floating-point number. | ||
* @param string A string that contains a floating-point number. | ||
*/ | ||
* Converts a string to a floating-point number. | ||
* @param string A string that contains a floating-point number. | ||
*/ | ||
parseFloat(string: string): number; | ||
/** | ||
* Converts A string to an integer. | ||
* @param s A string to convert into a number. | ||
* @param radix A value between 2 and 36 that specifies the base of the number in numString. | ||
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. | ||
* All other strings are considered decimal. | ||
*/ | ||
* Converts A string to an integer. | ||
* @param s A string to convert into a number. | ||
* @param radix A value between 2 and 36 that specifies the base of the number in numString. | ||
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. | ||
* All other strings are considered decimal. | ||
*/ | ||
parseInt(string: string, radix?: number): number; | ||
@@ -315,22 +315,22 @@ } | ||
/** | ||
* Copy the values of all of the enumerable own properties from one or more source objects to a | ||
* target object. Returns the target object. | ||
* @param target The target object to copy to. | ||
* @param sources One or more source objects to copy properties from. | ||
*/ | ||
* Copy the values of all of the enumerable own properties from one or more source objects to a | ||
* target object. Returns the target object. | ||
* @param target The target object to copy to. | ||
* @param sources One or more source objects to copy properties from. | ||
*/ | ||
assign(target: any, ...sources: any[]): any; | ||
/** | ||
* Returns true if the values are the same value, false otherwise. | ||
* @param value1 The first value. | ||
* @param value2 The second value. | ||
*/ | ||
* Returns true if the values are the same value, false otherwise. | ||
* @param value1 The first value. | ||
* @param value2 The second value. | ||
*/ | ||
is(value1: any, value2: any): boolean; | ||
/** | ||
* Sets the prototype of a specified object o to object proto or null. Returns the object o. | ||
* @param o The object to change its prototype. | ||
* @param proto The value of the new prototype or null. | ||
* @remarks Requires `__proto__` support. | ||
*/ | ||
* Sets the prototype of a specified object o to object proto or null. Returns the object o. | ||
* @param o The object to change its prototype. | ||
* @param proto The value of the new prototype or null. | ||
* @remarks Requires `__proto__` support. | ||
*/ | ||
setPrototypeOf(o: any, proto: any): any; | ||
@@ -341,13 +341,13 @@ } | ||
/** | ||
* Returns a string indicating the flags of the regular expression in question. This field is read-only. | ||
* The characters in this string are sequenced and concatenated in the following order: | ||
* | ||
* - "g" for global | ||
* - "i" for ignoreCase | ||
* - "m" for multiline | ||
* - "u" for unicode | ||
* - "y" for sticky | ||
* | ||
* If no flags are set, the value is the empty string. | ||
*/ | ||
* Returns a string indicating the flags of the regular expression in question. This field is read-only. | ||
* The characters in this string are sequenced and concatenated in the following order: | ||
* | ||
* - "g" for global | ||
* - "i" for ignoreCase | ||
* - "m" for multiline | ||
* - "u" for unicode | ||
* - "y" for sticky | ||
* | ||
* If no flags are set, the value is the empty string. | ||
*/ | ||
flags: string; | ||
@@ -358,109 +358,109 @@ } | ||
/** | ||
* Returns the number of leading zero bits in the 32-bit binary representation of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the number of leading zero bits in the 32-bit binary representation of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
clz32(x: number): number; | ||
/** | ||
* Returns the result of 32-bit multiplication of two numbers. | ||
* @param x First number | ||
* @param y Second number | ||
*/ | ||
* Returns the result of 32-bit multiplication of two numbers. | ||
* @param x First number | ||
* @param y Second number | ||
*/ | ||
imul(x: number, y: number): number; | ||
/** | ||
* Returns the sign of the x, indicating whether x is positive, negative or zero. | ||
* @param x The numeric expression to test | ||
*/ | ||
* Returns the sign of the x, indicating whether x is positive, negative or zero. | ||
* @param x The numeric expression to test | ||
*/ | ||
sign(x: number): number; | ||
/** | ||
* Returns the base 10 logarithm of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the base 10 logarithm of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
log10(x: number): number; | ||
/** | ||
* Returns the base 2 logarithm of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the base 2 logarithm of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
log2(x: number): number; | ||
/** | ||
* Returns the natural logarithm of 1 + x. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the natural logarithm of 1 + x. | ||
* @param x A numeric expression. | ||
*/ | ||
log1p(x: number): number; | ||
/** | ||
* Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of | ||
* the natural logarithms). | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of | ||
* the natural logarithms). | ||
* @param x A numeric expression. | ||
*/ | ||
expm1(x: number): number; | ||
/** | ||
* Returns the hyperbolic cosine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the hyperbolic cosine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
cosh(x: number): number; | ||
/** | ||
* Returns the hyperbolic sine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the hyperbolic sine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
sinh(x: number): number; | ||
/** | ||
* Returns the hyperbolic tangent of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the hyperbolic tangent of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
tanh(x: number): number; | ||
/** | ||
* Returns the inverse hyperbolic cosine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the inverse hyperbolic cosine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
acosh(x: number): number; | ||
/** | ||
* Returns the inverse hyperbolic sine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the inverse hyperbolic sine of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
asinh(x: number): number; | ||
/** | ||
* Returns the inverse hyperbolic tangent of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
* Returns the inverse hyperbolic tangent of a number. | ||
* @param x A numeric expression that contains an angle measured in radians. | ||
*/ | ||
atanh(x: number): number; | ||
/** | ||
* Returns the square root of the sum of squares of its arguments. | ||
* @param values Values to compute the square root for. | ||
* If no arguments are passed, the result is +0. | ||
* If there is only one argument, the result is the absolute value. | ||
* If any argument is +Infinity or -Infinity, the result is +Infinity. | ||
* If any argument is NaN, the result is NaN. | ||
* If all arguments are either +0 or −0, the result is +0. | ||
*/ | ||
* Returns the square root of the sum of squares of its arguments. | ||
* @param values Values to compute the square root for. | ||
* If no arguments are passed, the result is +0. | ||
* If there is only one argument, the result is the absolute value. | ||
* If any argument is +Infinity or -Infinity, the result is +Infinity. | ||
* If any argument is NaN, the result is NaN. | ||
* If all arguments are either +0 or −0, the result is +0. | ||
*/ | ||
hypot(...values: number[]): number; | ||
/** | ||
* Returns the integral part of the a numeric expression, x, removing any fractional digits. | ||
* If x is already an integer, the result is x. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the integral part of the a numeric expression, x, removing any fractional digits. | ||
* If x is already an integer, the result is x. | ||
* @param x A numeric expression. | ||
*/ | ||
trunc(x: number): number; | ||
/** | ||
* Returns the nearest single precision float representation of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns the nearest single precision float representation of a number. | ||
* @param x A numeric expression. | ||
*/ | ||
fround(x: number): number; | ||
/** | ||
* Returns an implementation-dependent approximation to the cube root of number. | ||
* @param x A numeric expression. | ||
*/ | ||
* Returns an implementation-dependent approximation to the cube root of number. | ||
* @param x A numeric expression. | ||
*/ | ||
cbrt(x: number): number; | ||
@@ -471,9 +471,15 @@ } | ||
/** | ||
* Attaches callbacks for the resolution and/or rejection of the Promise. | ||
* @param onfulfilled The callback to execute when the Promise is resolved. | ||
* @param onrejected The callback to execute when the Promise is rejected. | ||
* @returns A Promise for the completion of which ever callback is executed. | ||
*/ | ||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>; | ||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>; | ||
* Attaches callbacks for the resolution and/or rejection of the Promise. | ||
* @param onfulfilled The callback to execute when the Promise is resolved. | ||
* @param onrejected The callback to execute when the Promise is rejected. | ||
* @returns A Promise for the completion of which ever callback is executed. | ||
*/ | ||
then<TResult>( | ||
onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, | ||
onrejected?: (reason: any) => TResult | PromiseLike<TResult>, | ||
): PromiseLike<TResult>; | ||
then<TResult>( | ||
onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, | ||
onrejected?: (reason: any) => void, | ||
): PromiseLike<TResult>; | ||
} | ||
@@ -486,9 +492,15 @@ | ||
/** | ||
* Attaches callbacks for the resolution and/or rejection of the Promise. | ||
* @param onfulfilled The callback to execute when the Promise is resolved. | ||
* @param onrejected The callback to execute when the Promise is rejected. | ||
* @returns A Promise for the completion of which ever callback is executed. | ||
*/ | ||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>; | ||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): Promise<TResult>; | ||
* Attaches callbacks for the resolution and/or rejection of the Promise. | ||
* @param onfulfilled The callback to execute when the Promise is resolved. | ||
* @param onrejected The callback to execute when the Promise is rejected. | ||
* @returns A Promise for the completion of which ever callback is executed. | ||
*/ | ||
then<TResult>( | ||
onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, | ||
onrejected?: (reason: any) => TResult | PromiseLike<TResult>, | ||
): Promise<TResult>; | ||
then<TResult>( | ||
onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, | ||
onrejected?: (reason: any) => void, | ||
): Promise<TResult>; | ||
@@ -506,4 +518,4 @@ /** | ||
/** | ||
* A reference to the prototype. | ||
*/ | ||
* A reference to the prototype. | ||
*/ | ||
prototype: Promise<any>; | ||
@@ -517,3 +529,5 @@ | ||
*/ | ||
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; | ||
new<T>( | ||
executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void, | ||
): Promise<T>; | ||
@@ -551,6 +565,6 @@ /** | ||
/** | ||
* Creates a new resolved promise for the provided value. | ||
* @param value A promise. | ||
* @returns A promise whose internal state matches the provided promise. | ||
*/ | ||
* 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>; | ||
@@ -581,4 +595,4 @@ | ||
interface MapConstructor { | ||
new <K, V>(): Map<K, V>; | ||
new <K, V>(iterable: IterableShim<[K, V]>): Map<K, V>; | ||
new<K, V>(): Map<K, V>; | ||
new<K, V>(iterable: IterableShim<[K, V]>): Map<K, V>; | ||
prototype: Map<any, any>; | ||
@@ -599,8 +613,8 @@ } | ||
values(): IterableIteratorShim<T>; | ||
'_es6-shim iterator_'(): IterableIteratorShim<T>; | ||
"_es6-shim iterator_"(): IterableIteratorShim<T>; | ||
} | ||
interface SetConstructor { | ||
new <T>(): Set<T>; | ||
new <T>(iterable: IterableShim<T>): Set<T>; | ||
new<T>(): Set<T>; | ||
new<T>(iterable: IterableShim<T>): Set<T>; | ||
prototype: Set<any>; | ||
@@ -619,4 +633,4 @@ } | ||
interface WeakMapConstructor { | ||
new <K extends object, V>(): WeakMap<K, V>; | ||
new <K extends object, V>(iterable: IterableShim<[K, V]>): WeakMap<K, V>; | ||
new<K extends object, V>(): WeakMap<K, V>; | ||
new<K extends object, V>(iterable: IterableShim<[K, V]>): WeakMap<K, V>; | ||
prototype: WeakMap<any, any>; | ||
@@ -634,4 +648,4 @@ } | ||
interface WeakSetConstructor { | ||
new <T>(): WeakSet<T>; | ||
new <T>(iterable: IterableShim<T>): WeakSet<T>; | ||
new<T>(): WeakSet<T>; | ||
new<T>(iterable: IterableShim<T>): WeakSet<T>; | ||
prototype: WeakSet<any>; | ||
@@ -638,0 +652,0 @@ } |
{ | ||
"name": "@types/es6-shim", | ||
"version": "0.31.42", | ||
"version": "0.31.43", | ||
"description": "TypeScript definitions for es6-shim", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es6-shim", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "3ba4a7da7389920b08eaddf5cee69ca642d71538ca3d864fcb861d378d60d25a", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "231463475144bfc2b6d5b9ea29ebb88da0aa4c58ce4deef018a121e788771a5f", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 19:03:38 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `Map`, `Promise`, `Reflect`, `Set`, `WeakMap`, `WeakSet` |
585
26692