mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
Fix eventsource DOM shim for TS 5.0 beta (#64013)
The types that the DOM monkeypatch shims are now the precise literals instead of number. The new code won't succeed until tomorrow. See microsoft/TypeScript#52328
This commit is contained in:
committed by
GitHub
parent
d4ee2164bb
commit
07ec31c6a9
8
types/eventsource/dom-monkeypatch.d.ts
vendored
8
types/eventsource/dom-monkeypatch.d.ts
vendored
@@ -39,10 +39,10 @@ interface Event {
|
||||
* "submit".
|
||||
*/
|
||||
readonly type: string;
|
||||
readonly AT_TARGET: number;
|
||||
readonly BUBBLING_PHASE: number;
|
||||
readonly CAPTURING_PHASE: number;
|
||||
readonly NONE: number;
|
||||
readonly AT_TARGET: 2;
|
||||
readonly BUBBLING_PHASE: 3;
|
||||
readonly CAPTURING_PHASE: 1;
|
||||
readonly NONE: 0;
|
||||
composedPath(): any[];
|
||||
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
||||
preventDefault(): void;
|
||||
|
||||
1
types/eventsource/index.d.ts
vendored
1
types/eventsource/index.d.ts
vendored
@@ -5,6 +5,7 @@
|
||||
// Pedro Gámez <https://github.com/snakedrak>
|
||||
// Akuukis <https://github.com/Akuukis>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Minimum TypeScript Version: 5.0
|
||||
|
||||
// eventsource uses DOM dependencies which are absent in a browserless environment like node.js.
|
||||
// to avoid compiler errors this monkey patch is used. See more details in:
|
||||
|
||||
Reference in New Issue
Block a user