-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update es6.d.ts for final draft of ES6 specification #2881
Comments
And it's now the current standard. |
@rbuckton it looks like interface PromiseConstructor {
// ...
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
// ...
} |
Another one missing: |
This is not part of ES6, this is actually part of ES7/ES2016. the definition can be included using |
Oh I see, thanks for the pointer! |
…r, ArrayBufferConstructor. Fix Symbol.species in RegExpConstructor and PromiseConstructor. See microsoft#2881 .
Fixed by #18652 |
SymbolConstructor
:match
,replace
,search
,species
,split
(from Obsolete 'isRegExp' and several non-mentioned well-known symbols in lib.es6.d.ts #2524).Function.toMethod
.[Symbol.hasInstance]
method toFunction
interface.[Symbol.toPrimitive]
method toDate
interface.includes
method toString
interface, and removecontains
match
method onString
interface that accepts an object with a compatible[Symbol.match]
method.replace
method onString
interface that accepts an object with a compatible[Symbol.replace]
method.search
method onString
interface that accepts an object with a compatible[Symbol.search]
method.split
method onString
interface that accepts an object with a compatible[Symbol.split]
method.[Symbol.species]
property toRegExpConstructor
interface.[Symbol.match]
method toRegExp
interface.[Symbol.replace]
method toRegExp
interface.[Symbol.search]
method toRegExp
interface.[Symbol.split]
method toRegExp
interface.[Symbol.species]
property toArrayConstructor
interface.[Symbol.unscopables]
property toArray
interface.Iterable<number>
.[Symbol.species]
property to Typed Array constructor interfaces.[Symbol.toStringTag]
property to Typed Array interfaces.[Symbol.species]
property toMapConstructor
interface.[Symbol.species]
property toSetConstructor
interface.[Symbol.species]
property toArrayBufferConstructor
interface.[Symbol.toStringTag]
property toGeneratorFunction
interface.Promise.all
can take an iterable.Promise.race
can take an iterable.[Symbol.species]
property toPromiseConstructor
interface.[Symbol.toStringTag]
property toPromise
interface.Reflect.construct
to add thirdnewTarget
argument.The text was updated successfully, but these errors were encountered: