Type alias Single<Type>

Single<Type>: readonly [single: Type]

Tuple of length 1 (AKA Monuple).

Remarks

Tuple with a single element on it, useful when doing optional types that compare to never.

Example

const single: Single<boolean> = [true];

Type Parameters

  • Type

    Type of the single element.