diff --git a/src/platform.ts b/src/platform.ts index 117e73a..bda1f97 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -1,5 +1,4 @@ import { Buffer } from 'ts-ebml/lib/tools'; -import 'web-ext-types'; import { GM_fetch, GM_head, headerStringToObject } from './requests'; let port: browser.runtime.Port; diff --git a/tsconfig.json b/tsconfig.json index ed35d67..71c89bb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,7 @@ */ "sourceMap": true, /** Requests the runtime types from the svelte modules by default. Needed for TS files or else you get errors. */ - "types": ["svelte", "tampermonkey"], + "types": ["svelte", "tampermonkey", "web-ext-types"], "incremental": true, /* Enable incremental compilation */ "target": "es2021", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ //"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */