I have a class Foo
and I can obtain the types of its constructor parameters with ConstructorParameters<typeof Foo>
.
These parameters are returned as a tuple, say [number, string, string | undefined]
. Is it possible to remove the first type from this tuple? I.e. I want the resulting tuple to be [string, string | undefined]
.
Please note that this must work with any amount of parameters greater than or equal to one.