Type alias LitUnion<LiteralType, BaseType>

LitUnion<LiteralType, BaseType>: LiteralType | BaseType & Record<never, never>

Vendored from type-fest

Utility type to represent a union of literal types or a base type without sacrificing intellisense.

Type Parameters

  • LiteralType
  • BaseType = string