Error with Typescript: "Property 'tts' does not exist on type 'typeof ChromePromise'."
See original GitHub issueI think you need to include/mirror and rename the chrome extensions API typescript (DefinitelyTyped) definitions,
I am using them with my typescript project and I love the intelisense code suggestions.
as documented I imported chromep like so import chromep from 'chrome-promise';
I didn’t mind the lack of code suggestions for chromep, but it seems with out the definitions Typescript compiler shows errors and doesn’t compile.
I’ll try forking and fixing it now, if I do i’ll submit a PR. but please don’t refrain from commenting your input.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
angular - TypeScript '...' does not exist on type 'typeof ...'
Error : Property 'EmailValidator' does not exist on type 'typeof UserValidators'. Code: import {EMAIL_REGEX} from '.
Read more >Can't import from Typescript · Issue #19 · tfoxy/chrome-promise
I'm trying to use chrome-promise in a Typescript Chrome Extension. ... Error with Typescript: "Property 'tts' does not exist on type 'typeof ......
Read more >Error "Property 'registerButtonCallback' does not exist on type ...
Hey. I am trying to make typed variables. In the documentation I found an example with the type Panda. I want to do...
Read more >Property 'defaultEase' does not exist on type 'typeof TweenLite'.
Hi guys! I have been trying to add this line to my code: TweenLite.defaultEase = Linear.easeNone; But it is throwing this error: Property...
Read more >Property does not exist on type Window in TypeScript
The "Property does not exist on type Window & typeof globalThis" error occurs when we access a property that does not exist on...
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
Yeah, I think it’s better than this library. Glad that it suits your needs better.
As I was responding, I realized the fix for the typings was really easy. So I just added it in. You can try v3.0.1