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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with dom-monkeypatch.d.ts #915

Open
CITGuru opened this issue Jan 29, 2024 · 0 comments
Open

Issues with dom-monkeypatch.d.ts #915

CITGuru opened this issue Jan 29, 2024 · 0 comments

Comments

@CITGuru
Copy link

CITGuru commented Jan 29, 2024

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch stellar-sdk@11.2.1 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.

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

1 participant