Type alias AwaitableFunction<T, R>

AwaitableFunction<T, R>: ((t) => Awaitable<R>)

A function that either returns a type or a promise of that type.

Type Parameters

  • T

    The input type.

  • R

    The return type.

Type declaration

Returns

An Awaitable value.

Generated using TypeDoc