UNPKG

@cuppachino/type-space

Version:

A collection of type utilities for TypeScript.

10 lines (9 loc) 217 B
/** * Represents an array or tuple of unknown elements. * * @example * ``` * declare function foo<T extends UnknownArray>(...args: T): Foo<T> * ``` */ export type UnknownArray = unknown[] | readonly unknown[];