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.

TypeScript Support

See original GitHub issue

Feature Request

Introducing typescript support for the repo.

Why it is needed

With the increasing popularity in typescript, it would be nice to have typescript support or at least a type declaration for the repo. Currently, this repo does not have a typescript definition in @types repo. There are declaration files in @types/react-native that can be extracted to this repository.

Possible implementation

I believe there are two ways to approach this.

  • create an index.d.ts file, extracted from @types/react-native
  • convert each js files into .tsx and rewrite the modules in typescript

Any thoughts?

Code sample

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
BenoitSerranocommented, May 20, 2020

Hey @nicholaslee119 😃 Any update on the fix release date ? 😃

8reactions
flo5324commented, Sep 11, 2020

Just installed v0.5.3 Typings seems ok, but I still get the error “Unable to resolve path to module ‘@react-native-community/checkbox’” I tried to delete node_modules and clear intellij’s cache/restart

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript: JavaScript With Syntax For Types.
TypeScript extends JavaScript by adding types to the language. TypeScript speeds up your development experience by catching errors and providing fixes ...
Read more >
TypeScript - Wikipedia
TypeScript supports definition files that can contain type information of existing JavaScript libraries, much like C++ header files can describe the ...
Read more >
TypeScript Programming with Visual Studio Code
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces to help you build robust...
Read more >
TypeScript | WebStorm Documentation - JetBrains
WebStorm supports developing, running, and debugging TypeScript source code. ... Learn more from Compiling TypeScript into JavaScript.
Read more >
TypeScript support in Svelte - Learn web development
First-class TypeScript support has been Svelte's most requested feature for quite some time. Thanks to the hard work of the Svelte team, ...
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