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
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-polyfillfunctionhandler1(params: Runtime.MessageSender){}// This types from @types/chrome(need install `@types/chrome`)functionhandler2(params: chrome.runtime.MessageSender){}
After some investigation, it seems this might be more of an issue with the upstream type definitions rather than WXT itself. Since the interfaces are defined alongside the implementation within a namespace, there is no way to re-export them.
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.
Originally posted by @1natsu172 in #1116 (comment)
and
Originally posted in #1116 (comment)
The text was updated successfully, but these errors were encountered: