Properties
Private _promise
_promise: Promise<T>
Private _reject
_reject: function
Private _resolve
_resolve: function
Type declaration
-
- (value?: T | Thenable<T>): void
-
Parameters
-
Optional value: T | Thenable<T>
Returns void
Accessors
promise
- get promise(): Promise<T>
Methods
reject
- reject(reason?: any): void
resolve
- resolve(value?: T | Thenable<T>): void
-
Parameters
-
Optional value: T | Thenable<T>
Returns void
A Promise that can be resolved or rejected by another object.