From 60e01f3e64d9ae14c165668eb34bb8c0b2472c6d Mon Sep 17 00:00:00 2001 From: Joel Male Date: Thu, 10 Nov 2022 22:45:08 +1000 Subject: [PATCH] wip --- src/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.ts b/src/http.ts index 7561b443..ea797595 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1,4 +1,4 @@ -const fetch = require('node-fetch') +import fetch from 'node-fetch'; var https = require('https') class Http { @@ -12,7 +12,7 @@ class Http { fetch( url, this.getOptions('post', headers, body, ignoreCertificate) - ).then((res: Response) => resolve(res)) + ).then((res: any) => resolve(res)) }) }