MaybePromise

Utility type that transforms a type into a maybe Promise type.

Generic

  • Value any

Return

  • Type Value | Promise<Value>