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.

Error with Typescript: "Property 'tts' does not exist on type 'typeof ChromePromise'."

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tfoxycommented, May 27, 2018

Yeah, I think it’s better than this library. Glad that it suits your needs better.

1reaction
tfoxycommented, May 26, 2018

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

Read more comments on GitHub >

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

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