If I have:
const selector = (state: {}, count = 1) => {};
type parms = Parameters<typeof selector>;
then parms
will be:
[{}, number?]
I note if I apply an index I can extract a single param:
type parms = Parameters<typeof selector>[1]; // type parms = number
Is there some way to indicate I would like to omit the first parameter from being returned? Something along the lines of .slice(1)
?