mkoryak/floatThead

TypeScript 4.3.5 error with version 2.2.2

doberkofler opened this issue · 7 comments

node_modules/floatthead/dist/jquery.floatThead.d.ts:20:67 - error TS1385: Function type notation must be parenthesized when used in a union type.

20     floatThead(action: "destroy"|"reflow"|"getRowGroups"): JQuery|() => JQuery;

Thank you

i published a new version on npm too.

@mkoryak I'm still getting this error with version 2.2.3

node_modules/floatthead/dist/jquery.floatThead.d.ts:20:69 - error TS1385: Function type notation must be parenthesized when used in a union type.

20     floatThead(action: ("destroy"|"reflow"|"getRowGroups")): JQuery|() => JQuery;

Somehow the function type () => JQuery is in fact still not parenthesized

Do you want to submit a pr with a fix, since you have a way to get these errors and I do not?

On Fri, Aug 20, 2021, 7:45 AM Dieter Oberkofler @.***> wrote: Somehow the function type () => JQuery is in fact still not parenthesized — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#472 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5WSMKEU277HVPBBVI553T5Y56DANCNFSM5CLE2M5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

I've created a PR #473