FieldedText TypeScript Library
    Preparing search index...

    Function createResolvedPromise

    • Creates a promise that resolves to an Ok instance.

      Type Parameters

      • T

        The successful value type.

      • E

        The error type kept for compatibility with the Result union.

      Parameters

      • value: T

        The value to wrap in an Ok result.

      Returns Promise<FtOk<T, E>>

      A promise that resolves to new Ok(value).