@chickenjdk/byteutils
    Preparing search index...

    Function wrapForKnownAsyncCallArr

    • Like knownAsyncCallArr, but it outputs a wrapped version of value, not the results of the function calls.

      Type Parameters

      • func extends (...args: args) => unknown

        The function to call

      • value extends unknown

        The final value to return

      • args extends unknown[]
      • IsAsync extends boolean

      Parameters

      • func: func
      • params: args[]

        The array of array of params to pass to the function

      • value: value
      • async: IsAsync

        If the function should a promise-value

      Returns MaybePromise<value, IsAsync>

      An async or sync version of value depending on the async param