Welshman Docs / @welshman/lib / makePromise
Function: makePromise() ​
makePromise<
T
,E
>(executor
):CustomPromise
<T
,E
>
Defined in: packages/lib/src/Deferred.ts:11
Creates a Promise with strongly typed error
Type Parameters ​
• T
• E
Parameters ​
executor ​
(resolve
, reject
) => void
Promise executor function
Returns ​
CustomPromise
<T
, E
>
Promise with typed error