You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letarr: any[]=[];// Move fnDeclaration here and it works declareletmapFn: typeoffnDeclaration|((v: any)=>number);// declare let mapFn: ((s: string) => string) | ((v: any) => number); // Also works okarr.map(mapFninstanceofFunction ? mapFn : i=>i);// Error in TS GOfunctionfnDeclaration(s: string): string{returns;}