Browse Source

Move web extension typing to config to allow builds

pull/46/head
coomdev 2 years ago
parent
commit
9f9b6dd8e0
  1. 1
      src/platform.ts
  2. 2
      tsconfig.json

1
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;

2
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'. */

Loading…
Cancel
Save