mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
typo: missing word: "to" (#27079)
Change: ...a resolve callback used resolve the promise... to: ...a resolve callback used to resolve the promise... This PR suggested from: https://github.com/Microsoft/TypeScript/pull/27075
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
1a69f78fba
commit
2b0e9e686b
4
src/lib/es2015.promise.d.ts
vendored
4
src/lib/es2015.promise.d.ts
vendored
@@ -7,7 +7,7 @@ interface PromiseConstructor {
|
||||
/**
|
||||
* Creates a new Promise.
|
||||
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
||||
* a resolve callback used resolve the promise with a value or the result of another promise,
|
||||
* a resolve callback used to resolve the promise with a value or the result of another promise,
|
||||
* and a reject callback used to reject the promise with a provided reason or error.
|
||||
*/
|
||||
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
||||
@@ -193,4 +193,4 @@ interface PromiseConstructor {
|
||||
resolve(): Promise<void>;
|
||||
}
|
||||
|
||||
declare var Promise: PromiseConstructor;
|
||||
declare var Promise: PromiseConstructor;
|
||||
|
||||
Reference in New Issue
Block a user