Skip to content

Commit 2b0e9e6

Browse files
bhamailsandersn
authored andcommitted
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: #27075
1 parent 1a69f78 commit 2b0e9e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2015.promise.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface PromiseConstructor {
77
/**
88
* Creates a new Promise.
99
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
10-
* a resolve callback used resolve the promise with a value or the result of another promise,
10+
* a resolve callback used to resolve the promise with a value or the result of another promise,
1111
* and a reject callback used to reject the promise with a provided reason or error.
1212
*/
1313
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
@@ -193,4 +193,4 @@ interface PromiseConstructor {
193193
resolve(): Promise<void>;
194194
}
195195

196-
declare var Promise: PromiseConstructor;
196+
declare var Promise: PromiseConstructor;

0 commit comments

Comments
 (0)