aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-02 22:57:27 -0500
committerGitHub <noreply@github.com>2024-02-03 03:57:27 +0000
commitd7db65a9b3b8d941c6934597862b8010a1ccac64 (patch)
tree5b406707f95243d786be048f8fc20c5fe90d48ae /types
parent17ffea6cb907c12c1af47d3f6f27126f126b168f (diff)
Chrome types update (#614)
* Update chrome types * Fix issues * Update manifest author
Diffstat (limited to 'types')
-rw-r--r--types/dev/manifest.d.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/types/dev/manifest.d.ts b/types/dev/manifest.d.ts
index ef2c831c..f07b2355 100644
--- a/types/dev/manifest.d.ts
+++ b/types/dev/manifest.d.ts
@@ -15,7 +15,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-export type Manifest = chrome.runtime.Manifest;
+/**
+ * These overrides provide compatibility between the default chrome types and the minor
+ * differences that other browsers such as Firefox use.
+ */
+export type ManifestOverrides = {
+ author?: chrome.runtime.Manifest['author'] | string;
+};
+
+export type Manifest = Omit<chrome.runtime.Manifest, keyof ManifestOverrides> & ManifestOverrides;
export type ManifestConfig = {
manifest: Manifest;