Type Alias MaybePromiseOrCall<T, A>

MaybePromiseOrCall<T, A>: T | Promise<T> | ((...args: A) => T)

Type Parameters

  • T
  • A extends any[]