const copyTuple: CopyTuple = [1, 2, 3];
type Arr = number[];
type CopyArr = {
[Key in keyof Arr]: Arr[Key];
}
/*
type CopyArr = {
[x: number]: number;
length: number;
toString: () => string;
toLocaleString: () => string;
pop: () => number | undefined;
push: (...items: number[]) => number;
concat: {
(...items: ConcatArray<number>[]): number[];
(...items: (number | ConcatArray<...>)[]): number[];
};
... 25 more ...;
[Symbol.unscopables]: () => {
...;
};
}
*/
const copyArr: CopyArr = [1, 3, 9];