From 06044d9460b1c646d3e71b7d7c92ecd6f0456ce7 Mon Sep 17 00:00:00 2001 From: hensm Date: Wed, 27 Feb 2019 18:33:29 +0000 Subject: [PATCH] Convert ext popup to typescript --- ext/src/global.d.ts | 5 + ext/src/options/index.tsx | 4 +- ext/src/popup/{index.jsx => index.tsx} | 151 +++++++++++++++---------- ext/src/types.ts | 13 +++ ext/webpack.config.js | 2 +- 5 files changed, 111 insertions(+), 64 deletions(-) rename ext/src/popup/{index.jsx => index.tsx} (70%) create mode 100644 ext/src/types.ts diff --git a/ext/src/global.d.ts b/ext/src/global.d.ts index 54ba330..6c6bb32 100644 --- a/ext/src/global.d.ts +++ b/ext/src/global.d.ts @@ -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