Fix @types/firefox-webext-browser issue

This commit is contained in:
hensm
2019-04-14 09:09:56 +01:00
committed by Matt Hensman
parent 5d7d321056
commit 31061a3a3a

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

@@ -54,6 +54,12 @@ declare namespace browser.events {
declare namespace browser.runtime {
interface Port {
error: { message: string };
/**
* https://git.io/fjmzb
* addListener cb `() => void` is wrong
*/
onMessage: browser.events.Event
}
function connect (connectInfo: {