TS1385
Function type notation must be parenthesized when used in a union type.
Broken Code ❌
type MyCallback = () => number | () => stringFixed Code ✔️
When using a union type, you have to put additional function types in parentheses:
type MyCallback = () => number | (() => string);