Optional<T>: T | undefined

Utility alias for T | undefined, shorter and more readable

Remark

  • Use this when the T? syntax is unavailable such as function return types
  • Otherwise prefer T?

Type Parameters

  • T

Generated using TypeDoc