You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using webextension-polyfill's Manifest.WebExtensionManifest type, implement our own that works for both Chrome and firefox, as well as MV2 and MV3.
Missing manifest.key property type on wxt.config.ts. It works though.
Object literal may only specify known properties, and 'key' does not exist in type 'Partial<Omit<WebExtensionManifest, "background" | "chrome_url_overrides" | "devtools_page" | "manifest_version" | "options_page" | "options_ui" | "sandbox">> | Promise<...> | UserManifestFn'.ts(2353)
index-l43sonfW.d.ts(227, 5): The expected type comes from property 'manifest' which is declared here on type 'UserConfig'
(property) key: string
Reacted by Aaron, Phuc Trinh, Vlad Fedosov and Max McKinley
Update, after adding support for @types/chrome via extensionApi: "chrome" (see #868), I'm planning on migrating the manifest type to @types/chrome as well. Need to review it's types to see how well it supports Firefox-only fields.
Activity
pavitra-infocusp commentedon Mar 5, 2024
Missing
manifest.keyproperty type onwxt.config.ts. It works though.trinhcanhphuc commentedon Mar 8, 2024
any solution for this issue ? :(
aklinker1 commentedon Mar 8, 2024
Writing 1000 lines of types takes time. Its a WIP
Just use
// @ts-expect-erroraklinker1 commentedon Aug 16, 2024
Update, after adding support for
@types/chromeviaextensionApi: "chrome"(see #868), I'm planning on migrating the manifest type to@types/chromeas well. Need to review it's types to see how well it supports Firefox-only fields.aklinker1 commentedon Sep 6, 2024
Released in
v0.19.9