Convert ext popup to typescript

This commit is contained in:
hensm
2019-02-27 18:33:29 +00:00
parent 22a15f4790
commit 06044d9460
5 changed files with 111 additions and 64 deletions

5
ext/src/global.d.ts vendored
View File

@@ -15,6 +15,11 @@ declare namespace browser.runtime {
interface Port {
error: { message: string };
}
function connect (connectInfo: {
name?: string
, includeTlsChannelId?: boolean
}): browser.runtime.Port;
}
// Allow default attribute on <button>