Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.d.ts produces errors in Typescript #41

Open
dmca-glasgow opened this issue May 14, 2021 · 2 comments
Open

index.d.ts produces errors in Typescript #41

dmca-glasgow opened this issue May 14, 2021 · 2 comments

Comments

@dmca-glasgow
Copy link

$ tsc
node_modules/event-target-shim/index.d.ts:377:34 - error TS1005: ']' expected.

377     [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction<TEventTarget, TEventMap[P]> | null;
                                       ~~

node_modules/event-target-shim/index.d.ts:377:45 - error TS1005: ';' expected.

377     [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction<TEventTarget, TEventMap[P]> | null;
                                                  ~

node_modules/event-target-shim/index.d.ts:377:46 - error TS1128: Declaration or statement expected.

377     [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction<TEventTarget, TEventMap[P]> | null;
                                                   ~

node_modules/event-target-shim/index.d.ts:377:105 - error TS1005: '(' expected.

377     [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction<TEventTarget, TEventMap[P]> | null;
                                                                                                              ~

node_modules/event-target-shim/index.d.ts:377:111 - error TS1005: ')' expected.

377     [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction<TEventTarget, TEventMap[P]> | null;
                                                                                                                    ~

node_modules/event-target-shim/index.d.ts:379:1 - error TS1128: Declaration or statement expected.

379 }
    ~

Typescript version ^3.8.3

@irohitb
Copy link

irohitb commented Jan 2, 2023

@dmca-glasgow were you able to fix it?

@NoelDeMartin
Copy link

NoelDeMartin commented Feb 28, 2023

For anyone else running into this, we fixed it using patch-package. You can see our patch here: https://github.com/moodlehq/moodleapp/blob/master/patches/event-target-shim%2B6.0.2.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants