await-to-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
to
Index
Functions
to
Functions
to
to<T, U>
(
promise
:
Promise
<
T
>
, errorExt
?:
undefined
|
object
)
:
Promise
<
[
U
,
undefined
]
|
[
null
,
T
]
>
Type parameters
T
U
Parameters
promise:
Promise
<
T
>
Optional
errorExt:
undefined
|
object
Additional Information you can pass to the err object
Returns
Promise
<
[
U
,
undefined
]
|
[
null
,
T
]
>
Generated using
TypeDoc