From bca12d6f02b721af9081bd3617c6062be87a2f56 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Sun, 2 Feb 2020 01:58:07 +0800 Subject: [PATCH] fix: compile error Signed-off-by: MiaoWoo --- packages/common/src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/http.ts b/packages/common/src/http.ts index 20c2cdeb..cade1e78 100644 --- a/packages/common/src/http.ts +++ b/packages/common/src/http.ts @@ -18,13 +18,13 @@ interface RequestConfig { } function request(config: RequestConfig) { + // @ts-ignore let xhr = new XMLHttpRequest(); xhr.open(config.method, config.url, false); for (const header in config.headers) { xhr.setRequestHeader(header, config.headers[header]); } let future = xhr.send(config.data); - // @ts-ignore return future.get(); }