From 981c2f0832c8db4ead7aaf0865cf3259c6f3d718 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 25 Apr 2020 02:08:39 +0200 Subject: [PATCH] added types for extrension api --- package-lock.json | 6 ++++++ package.json | 1 + tsconfig.json | 1 + 3 files changed, 8 insertions(+) diff --git a/package-lock.json b/package-lock.json index 9aa87ee..42a36f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12552,6 +12552,12 @@ } } }, + "web-ext-types": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-ext-types/-/web-ext-types-3.2.1.tgz", + "integrity": "sha512-oQZYDU3W8X867h8Jmt3129kRVKklz70db40Y6OzoTTuzOJpF/dB2KULJUf0txVPyUUXuyzV8GmT3nVvRHoG+Ew==", + "dev": true + }, "webidl-conversions": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", diff --git a/package.json b/package.json index fc7b5bb..c4185c0 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "ts-loader": "^7.0.0", "typescript": "^3.8.3", "web-ext": "^4.2.0", + "web-ext-types": "^3.2.1", "webpack": "^4.42.1", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.10.3" diff --git a/tsconfig.json b/tsconfig.json index 08a0819..5aed9fb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "sourceMap": true, "noLib": false, "jsx": "react", + "typeRoots": ["node_modules/@types", "node_modules/web-ext-types"], }, "exclude": [ "node_modules"