From f2e18e165646ee1f45be023b5e0ad1b8bf5e1c82 Mon Sep 17 00:00:00 2001 From: Stephan <57194608+stephan418@users.noreply.github.com> Date: Tue, 9 Nov 2021 15:40:38 +0100 Subject: [PATCH] Fix the error where the code doesn't compile TypeScript is not used for browser development here, hence it does not know the type XMLHttpRequest (used by SuperAgent) This is not an ideal solution --- src/superagent.d.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/superagent.d.ts diff --git a/src/superagent.d.ts b/src/superagent.d.ts new file mode 100644 index 0000000..350c12a --- /dev/null +++ b/src/superagent.d.ts @@ -0,0 +1,3 @@ +// Temporary fix +// REVIEW: Look into a better solution +declare interface XMLHttpRequest {}