happy-rusty
    Preparing search index...

    Type Alias AsyncLikeOption<T>

    AsyncLikeOption: PromiseLike<Option<T>>

    Represents an asynchronous Option that is wrapped in a PromiseLike. This is similar to AsyncOption<T> but uses PromiseLike instead of Promise, allowing compatibility with any thenable object.

    Type Parameters

    • T

      The type of the value that may be contained in the Some variant.

    1.8.0

    // Works with any PromiseLike, not just Promise
    const thenable: AsyncLikeOption<number> = {
    then(resolve) { resolve(Some(42)); }
    };