Home > types > NonEmptyArray
非空数组类型。
Signature:
export declare type NonEmptyArray<T> = [T, ...T[]];
type X = NonEmptyArray<number> const x: X = [] // => error