update to latest TypeScript
See original GitHub issueI am having problems with using TypeScript@3.9.5 with chrome-promise. My project needs tsc v3.9.5 to compile as it uses es2020 and other features.
I have installed @types/node:latest
and typescript@3.9.5
, and am getting the following :-
node_modules/chrome-promise/chrome-promise.d.ts:73:51 - error TS2694: Namespace 'chrome.accessibilityFeatures' has no exported member 'AccessibilityFeaturesGetArg'.
73 get(details: chrome.accessibilityFeatures.AccessibilityFeaturesGetArg): Promise<chrome.accessibilityFeatures.AccessibilityFeaturesCallbackArg>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/chrome-promise/chrome-promise.d.ts:73:118 - error TS2694: Namespace 'chrome.accessibilityFeatures' has no exported member 'AccessibilityFeaturesCallbackArg'.
73 get(details: chrome.accessibilityFeatures.AccessibilityFeaturesGetArg): Promise<chrome.accessibilityFeatures.AccessibilityFeaturesCallbackArg>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/chrome-promise/chrome-promise.d.ts:81:51 - error TS2694: Namespace 'chrome.accessibilityFeatures' has no exported member 'AccessibilityFeaturesSetArg'.
81 set(details: chrome.accessibilityFeatures.AccessibilityFeaturesSetArg): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/chrome-promise/chrome-promise.d.ts:89:53 - error TS2694: Namespace 'chrome.accessibilityFeatures' has no exported member 'AccessibilityFeaturesClearArg'.
89 clear(details: chrome.accessibilityFeatures.AccessibilityFeaturesClearArg): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 4 errors.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
How to update TypeScript to latest version with npm?
Open Cmd and do 'where tsc' , which shows the list of typescripts in the path then you can manually delete the typescript...
Read more >typescript - npm
TypeScript is a language for application scale JavaScript development. Latest version: 4.9.4, last published: 20 days ago.
Read more >How to set up TypeScript
To do this, run npm install -g typescript . This will install the latest version (currently 4.9).
Read more >How To Install (Upgrade or Downgrade) a TypeScript Version?
To install the latest TypeScript version, add @latest when using the same command to install TypeScript. Hence, this will look like the ...
Read more >How to upgrade typescript to any specific version or latest ...
You can upgrade it to latest using our "npm install -g typescript" command which will install the latest Typescript version. Once you upgrade...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
from https://github.com/tfoxy/chrome-promise/issues/32 fixed the first errors. But I think it would be good to update
type-definitions
to use mode modern TypeScript code.If anybody is still wondering… apparently this lib is not longer needed with Chrome manifest v3, because all Chrome APIs are already promisified. So basically there is no need for this library. @Quantumplation @tfoxy. Currently I only use it for backwards compatibility for chrome extensions that still run manifest v3.