DurationOut<T>: [Error, null, number] | [null, T, number]

Type representing the output of the duration function. The result is a tuple that includes either an error or a value, and the duration in milliseconds.

Type Parameters

  • T

    The type of the resolved value of the promise.