// lets say we have some function typetypeSomeF=(a:number,b:string)=>number// and we have our utility typetypeAppendArgument<F,A>=Fextends(...args:inferArgs)=>inferR?(x:A,...args:Args)=>R:nevertypeFinalF=AppendArgument<SomeF,boolean>// FinalF should be (x: boolean, a: number, b: string) => number
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Advanced TypeScript Exercises - Question 4
For further actions, you may consider blocking this person and/or reporting abuse