GoogleChrome / GoogleChrome/chrome-types
Property 'OnInstalledReason' does not exist on type 'typeof runtime'.ts(2339)
Open
- Dominant language
- JavaScript
- Stars
- 274
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
https://developer.chrome.com/docs/extensions/reference/api/runtime#example-uninstall-url
```
chrome.runtime.onInstalled.addListener(details => {
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
chrome.runtime.setUninstallURL('https://example.com/extension-survey');
}
});
```
TypeScript gives error:
`Property 'OnInstalledReason' does not exist on type 'typeof runtime'.ts(2339)`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.