FieldedText TypeScript Library
    Preparing search index...

    Function createResolvedPromise

    • Creates a promise that resolves to an Err instance.

      Type Parameters

      • T = undefined

        The success value type that would be associated with the error branch.

      • E = string

        The error payload type.

      Parameters

      • error: E

        The error value to wrap in an Err result.

      Returns Promise<FtErr<T, E>>

      A promise that resolves to new Err<T, E>(error).