reconnecting-eventsource
reconnecting-eventsource copied to clipboard
TS2420: Class 'ReconnectingEventSource' incorrectly implements interface 'EventSource'. Property 'classList' is missing in type 'ReconnectingEventSource' but required in type 'EventSource'.
Got the above error when trying to build angular app (14.1)
package.json:
`"reconnecting-eventsource": "^1.6.2",
Seems like a constructor parameter classList
is missing?
For some reason, it's only a problem within build/src/reconnecting-eventsource.d.ts
('esm' and 'esnext' just work fine)
(added the marked line by hand)
Tried with Typescript 2.4.0 and 2.5.1.
Thank you in advance, spyro
Update: Never mind, seems to be a problem with ag-charts 7.x, which just overwrites EventTarget globally, requiring classList
to be specified in the overwritten report. I filed a bug report:
https://github.com/ag-grid/ag-grid/issues/6551