Typescript Library Declarations (ES2024)
Interface PromiseWithResolvers<T>
interface
PromiseWithResolvers
<
T
>
{
promise
:
Promise
<
T
>
;
reject
:
(
reason
?:
any
)
=>
void
;
resolve
:
(
value
:
T
|
PromiseLike
<
T
>
)
=>
void
;
}
Type Parameters
T
Index
Properties
promise
reject
resolve
Properties
promise
promise
:
Promise
<
T
>
reject
reject
:
(
reason
?:
any
)
=>
void
resolve
resolve
:
(
value
:
T
|
PromiseLike
<
T
>
)
=>
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
promise
reject
resolve
Typescript Library Declarations (ES2024)