Typecript vom Typ ohne Schicht
//unshift
type Unshift<T extends any[], K> = [K, ...T];
type unshift = Unshift<[1, 2], 0>; // [0, 1, 2,]
Husnain Syed
//unshift
type Unshift<T extends any[], K> = [K, ...T];
type unshift = Unshift<[1, 2], 0>; // [0, 1, 2,]