mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Small typo in ctor docs
This commit is contained in:
parent
16134c168d
commit
1dd3cfcdfc
2
es6-promise/es6-promise.d.ts
vendored
2
es6-promise/es6-promise.d.ts
vendored
@ -12,7 +12,7 @@ declare class Promise<R> implements Thenable<R> {
|
||||
/**
|
||||
* If you call resolve in the body of the callback passed to the constructor,
|
||||
* your promise is fulfilled with result object passed to resolve.
|
||||
* If you call reject your promise is rejected with the object passed to resolve.
|
||||
* If you call reject your promise is rejected with the object passed to reject.
|
||||
* For consistency and debugging (eg stack traces), obj should be an instanceof Error.
|
||||
* Any errors thrown in the constructor callback will be implicitly passed to reject().
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user