GoogleChrome / GoogleChrome/chrome-types
Missing types for `chrome.runtime.lastError` and `chrome.runtime.sendMessage`
- Dominant language
- JavaScript
- Stars
- 274
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
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`:
1. Not really sure, but I think `chrome.runtime.lastError` is still a thing in manifest v3 and the types do not reflect its existence
2. 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)`
3. 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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.