Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 276 Bytes

RestOrArray.md

File metadata and controls

11 lines (8 loc) · 276 Bytes

RestOrArray<T> Type

Represents a type that works as an array of specified type or ...spread of specified type.

Implementation

export type RestOrArray<T> = T[] | [T[]]
  • Type Parameters:
    • T (any): The type to convert into rest-or-array type.