error TS2349: Cannot invoke an expression whose type lacks a call signature. Type '((searchString: string, position?: number) => number) | ((searchElement: any, fromIndex?: number) => number)' has no compatible call signatures. code example
Example: Type 'string[]' has no call signatures.ts(2349)
// const method: string[] = () => {...}
const method: Array<string> = () => {...}