GoogleChrome / GoogleChrome/chrome-types

Property 'OnInstalledReason' does not exist on type 'typeof runtime'.ts(2339)

Open
#77 3 comments 5 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.