Type Alias MaybePromiseOrCallOrUndef<T, A>

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

Type Parameters

  • T
  • A extends any[]