@luolapeikko/ts-common
    Preparing search index...

    Type Alias Awaitable<T>

    Awaitable: T | Promise<T>

    A type that represents a value that can be either a direct value or a Promise that resolves to that value (T | Promise<T>)

    Type Parameters

    • T

      The type of the value that can be awaited.

    function getValue(): Awaitable<string> {
    return 'test';
    }

    v0.4.2