Documents for @litert/utils-ts-types
    Preparing search index...

    Type Alias IToPromise<T>

    IToPromise: T extends Promise<any> ? T : Promise<T>

    Converts a type to a Promise type, if it's already a Promise, it will return the same type.

    Type Parameters

    • T