Struggling with Type Inference in TypeScript Hook Function
Hello, dear Typescript experts:
can you please advice
Here is a function declaration:
I'm struggling to understand what would be my generic declaration to make it correctly infer from function arguments like this:
I have to define types explicitly to make it work:
if I do not specify generic types, typescripts infers following:
any ideas?
can you please advice
Here is a function declaration:
I'm struggling to understand what would be my generic declaration to make it correctly infer from function arguments like this:
I have to define types explicitly to make it work:
if I do not specify generic types, typescripts infers following:
any ideas?
