mapAsyncForUndefinable
Return the result of transformer with using input as an argument for it if input is not undefined
,
Otherwise, return undefined
.
U
must not beUndefinable<*>
.- If you'd like return
Undefinable<*>
asU
, useandThen()
. - If the result of transformer is
undefined
, this throw anError
.
- If you'd like return
function mapAsyncForUndefinable<T, U>(input: Undefinable<T>, transformer: AsyncTransformFn<T, NotUndefined<U>>): Promise<Undefinable<U>>;
§
mapAsyncForUndefinable<T, U>(input: Undefinable<T>, transformer: AsyncTransformFn<T, NotUndefined<U>>): Promise<Undefinable<U>>
[src]§Return Type
§
Promise<Undefinable<U>>
[src]