Is it possible to replace the any
s in the following code snippet? I want to eliminate the TypeScript warning "Unexpected any. Specify a different type"
interface Props {
isPrime: boolean;
}
interface Other {
isEdit: boolean;
}
type TFunc = (a: any, b: any) => any;
const myFunc = (c: TFunc) => (a: any) => (b: any) => c(a, b);
const funcA = myFunc((props: Props, other: Other) => {
// ..somecode
}
// Code to call the result of func A etc.