Function enforceResultsAsync

Enforce an array of results resolved from supplied promise.

  • Type Parameters

    • T

    Parameters

    • resultsPromise: Promise<readonly Result<T>[]>

      promise returning an array of results to enforce

    Returns Promise<readonly T[]>