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

    Class LoadableCore

    The core Loadable functions.

    v1.0.0

    Index

    Methods

    Methods

    • Resolves a loadable to a promise

      Type Parameters

      • T extends unknown

        The Loadable type.

      Parameters

      • loadable: T

        Loadable value to resolve.

      Returns ResolvedLoadable<T>

      Resolved value or Promise that resolves to the value.

      async function demo(loadable: Loadable<string>) {
      const value: string = await LoadableCore.resolve(loadable);
      }

      v1.0.0