js-stellar-sdk
js-stellar-sdk copied to clipboard
Issues with dom-monkeypatch.d.ts
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
Read more on the issue here: #914
Here is the diff that solved my problem:
diff --git a/node_modules/stellar-sdk/types/dom-monkeypatch.d.ts b/node_modules/stellar-sdk/types/dom-monkeypatch.d.ts
index 1a2287e..9f42549 100644
--- a/node_modules/stellar-sdk/types/dom-monkeypatch.d.ts
+++ b/node_modules/stellar-sdk/types/dom-monkeypatch.d.ts
@@ -31,9 +31,9 @@ interface EventSource extends EventTarget {
* event stream is set to "include", and false otherwise.
*/
readonly withCredentials: boolean;
- readonly CLOSED: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
+ readonly CLOSED: 2;
+ readonly CONNECTING: 0;
+ readonly OPEN: 1;
close(): void;
addEventListener<K extends keyof EventSourceEventMap>(
type: K,
This issue body was partially generated by patch-package.