Description
The second thing is that the interface as a type cannot be inferred from the browser
as you say. This one is not a package-manager dependent problem. I think it's an implementation glitch in WXT.
The workaround over here is below, and either approach should be used.
import { Runtime } from "wxt/browser";
// This types from webextension-polyfill
function handler1(params: Runtime.MessageSender) {}
// This types from @types/chrome(need install `@types/chrome`)
function handler2(params: chrome.runtime.MessageSender) {}
Originally posted by @1natsu172 in #1116 (comment)
and
Originally posted in #1116 (comment)
Metadata
Metadata
Assignees
Labels
No labels