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
Hi, I'm now migrating an extension to manifest v3 that was previously using @types/chrome, so far I have found 3 issues working with chrome-types:
Not really sure, but I think chrome.runtime.lastError is still a thing in manifest v3 and the types do not reflect its existence
For chrome.runtime.sendMessage there's a missing overload to call it only with a message and the callback, like chrome.runtime.sendMessage(message, cb)
Not sure if it's something intended but the types are missing adding the chrome property to the Window interface, if so, I think there should be some docs to show that
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, to add chrome types on your project, you may include it on tsconfig.json's compilerOptions like this
I agree with you on the runtime.sendMessage method missing the overloads.
I think @types/chrome has has them properly typed with Promises
Hi, I'm now migrating an extension to manifest v3 that was previously using
@types/chrome
, so far I have found 3 issues working withchrome-types
:chrome.runtime.lastError
is still a thing in manifest v3 and the types do not reflect its existencechrome.runtime.sendMessage
there's a missing overload to call it only with a message and the callback, likechrome.runtime.sendMessage(message, cb)
Window
interface, if so, I think there should be some docs to show thatThanks!
The text was updated successfully, but these errors were encountered: