Sha256: 1a67ba5891772a62706335b59a50720d89905196c90719dad7cec9c81c2990e6
Contents?: true
Size: 472 Bytes
Versions: 28
Compression:
Stored size: 472 Bytes
Contents
/** Represents an array with `unknown` value. Use case: You want a type that all arrays can be assigned to, but you don't care about the value. @example ``` import type {UnknownArray} from 'type-fest'; type IsArray<T> = T extends UnknownArray ? true : false; type A = IsArray<['foo']>; //=> true type B = IsArray<readonly number[]>; //=> true type C = IsArray<string>; //=> false ``` @category Type @category Array */ export type UnknownArray = readonly unknown[];
Version data entries
28 entries across 28 versions & 2 rubygems