TypeScript Support
See original GitHub issueFeature 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:
- Created 4 years ago
- Reactions:8
- Comments:26 (2 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Hey @nicholaslee119 😃 Any update on the fix release date ? 😃
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