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
{{ message }}
Repository navigation
Separate WebAssembly types from lib.dom.d.ts into their own file #826
Reacted by Dolan Murvihill, Andrii Dieiev, Pierre-Marie Dartus, Eric K., Mathias Schreck, Andrew Haines, Thomas Wang, Noah Wilson, Sam Estep, Nam Se Hyun and 14 more
Reacted by Kagami Sascha Rosylight, Simon Schick, Dmitry Semigradsky, Benjamin Pasero and Michael
changed the title [-]Separete WebAssembly types from `lib.dom.d.ts` into their own file[/-][+]Separate WebAssembly types from `lib.dom.d.ts` into their own file[/+]on Mar 2, 2020
Currently I can't define AbortController/AbortSignal/EventTarget/Event for node@15.x because typings include lib.dom.d.ts (with its own implementation of AbortController/AbortSignal, etc.) (DefinitelyTyped/DefinitelyTyped#48981)
Your case is happening because you’re defining them using class EventTarget instead of interface EventTarget { ... } and declare var EventTarget: EventTargetConstructor, but that depends on TypeScript language support: microsoft/TypeScript#39054 (comment) and microsoft/TypeScript#39504.
Activity
[-]Separete WebAssembly types from `lib.dom.d.ts` into their own file[/-][+]Separate WebAssembly types from `lib.dom.d.ts` into their own file[/+]Semigradsky commentedon Oct 26, 2020
+1
Currently I can't define
AbortController/AbortSignal/EventTarget/Eventfor node@15.x because typings includelib.dom.d.ts(with its own implementation ofAbortController/AbortSignal, etc.) (DefinitelyTyped/DefinitelyTyped#48981)ExE-Boss commentedon Oct 26, 2020
Dmitry Semigradsky (@Semigradsky) That’s unrelated to this.
Your case is happening because you’re defining them using
class EventTargetinstead ofinterface EventTarget { ... }anddeclare var EventTarget: EventTargetConstructor, but that depends on TypeScript language support: microsoft/TypeScript#39054 (comment) and microsoft/TypeScript#39504.