Logos DX
    Preparing search index...

    Type Alias MaybePromise<T>

    MaybePromise: T | Promise<T>

    Represents a value that can be either synchronous or asynchronous.

    Critical for utility functions that need to handle both sync and async operations uniformly, enabling flexible API design.

    Type Parameters

    • T
    function processData<T>(processor: () => MaybePromise<T>): Promise<T>
    function transform<T, U>(value: T, transformer: (val: T) => MaybePromise<U>): Promise<U>