7900 shaares
161 private links
161 private links
A tuple: type PersonProps = [string, number]
A variadic tuple: type Foo<T extends unknown[]> = [string, ...T, number];
A variadic tuple with 2 types:
type Bar<
T extends unknown[],
U extends unknown[]
> = [...T, string, ...U];