question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

update to latest TypeScript

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
AaronNGraycommented, Jun 19, 2020
npm install --save-dev @types/chrome@0.0.96

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.

0reactions
tscislocommented, Oct 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found