Since TypeScript 4.0, we have named tuples, which is great:
type Fn = (foo: number) => void;
type Foo = Parameters<Fn>;
// type Foo = [foo: number];
However, I am facing a situation in which I now have a named tuple but the names are just clutter. I don't want the names.
How can I build a RemoveNames<T> utility type that will take [foo: number] and return [number]?
Note: of course, I need it to work with tuples of any size.