Convert ext main.js -> main.ts

This commit is contained in:
hensm
2019-02-26 19:28:33 +00:00
parent 2014566cc4
commit 3ea943c509
7 changed files with 112 additions and 60 deletions

18
ext/src/global.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
declare const EXTENSION_NAME: string;
declare const EXTENSION_ID: string;
declare const EXTENSION_VERSION: string;
declare const MIRRORING_APP_ID: string;
declare const APPLICATION_NAME: string;
declare const APPLICATION_VERSION: string;
// Fix issues with @types/firefox-webext-browser
declare namespace browser.events {
interface Event {
addListener (...args: any[]): void;
}
}
declare namespace browser.runtime {
interface Port {
error: { message: string };
}
}