• Adapt a synchronous or an asynchronous function to be applied in the context of Maybe or AsyncMaybeLike.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • f: ((...args) => T | PromiseLike<T>)
        • (...args): T | PromiseLike<T>
        • Parameters

          • Rest ...args: TArgs

          Returns T | PromiseLike<T>

    Returns ((...elems) => Promise<Maybe<T>>)

      • (...elems): Promise<Maybe<T>>
      • Parameters

        Returns Promise<Maybe<T>>

Generated using TypeDoc