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.

Add TypeScript Definitions

See original GitHub issue

Current behaviour

Has built-in flow definitions. No definitions for TypeScript. No definitions on https://github.com/DefinitelyTyped/DefinitelyTyped .

Expected behaviour

If it’s likely for official to maintain a index.d.ts definition file in this project? This is recommend to keep the definition sync with code and maybe add test for this.

Or I could create the community-maintained definition at DefinitelyTyped.

Code sample

N/A

Screenshots (if applicable)

N/A

What have you tried

N/A

Your Environment

N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
doomsowercommented, Apr 19, 2018

I’ve decided to give react-native-paper a shot, and ported some definitions from flow already. Not sure if I’ll stick to this module, but I can submit partial PR. Or maybe I can create work-in-progress PR and add contrubutors

0reactions
Awais6commented, Jan 26, 2021

Intellisense not working in Jetbrains Idea or Webstrom

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript: Adding Custom Type Definitions for Existing ...
In these circumstances, you have to add your own custom type definitions for the libraries. This article will show you how to that....
Read more >
Documentation - Type Declarations - TypeScript
TypeScript automatically finds type definitions under node_modules/@types , so there's no other step needed to get these types available in your program.
Read more >
Add your own Type Definition to any Javascript 3rd party module
1. To the typeRoots property add your local-types folder path. "compilerOptions" : { ... "typeRoots": [ "node_modules/@types", · 2. Add a paths ...
Read more >
The repository for high quality TypeScript type definitions.
If you are adding typings for an npm package, create a directory with the same name. If the package you are adding typings...
Read more >
How to add custom types into the TypeScript project - drag13.io
Create custom typings · Create a root folder for your types. You can give any name for it but let it be types...
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