I have a curried function where I need to overload the returned function signature (simplified example):
const foo = (bar: string) => (tag: string, children?: string[]) => {
const foo = (bar: string) => (tag: string, props: Object, children?: string[]) => {
// Do something
};
Overloading works great with class methods or function declarations with the function keyword, but I haven't been able to get it to work with curried functions.