type SomeFunc = (a:string, b:number, c:someCustomType) => number;
I want to create a type that is just like the one above, except there is a single parameter added at the end. Let's say, d:number
;
type SomeFuncAltered = (a:string, b:number, c:someCustomType, d:number) => number;
I do not want to craft the entire type manually though, I'm pretty sure there's a smart trick with Parameters<func>
to be used here.