Better typescript support
See original GitHub issueVersion: 6.1.0
Environment:
- Operating system: Any
- Browser: Any
- Node.js: 7.3.0
- typescript 2.2.1.0
Expected result: The typescript definition file should be recognized automatically.
Actual result:
We need to add /// <reference path="./node_modules/primus/primus.d.ts" />
to every file
Steps to solve it:
Add the following row to the package.json file
"typings": "primus.d.ts"
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
TypeScript: JavaScript With Syntax For Types.
TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. Try TypeScript Now. Online or...
Read more >Comparing the best TypeScript IDEs
Compare the best IDEs for TypeScript, including Visual Studio Code, WebStorm, and Visual Studio 2019/2022.
Read more >TypeScript Programming with Visual Studio Code
VS Code comes with great debugging support for TypeScript, including support for sourcemaps. Set breakpoints, inspect objects, navigate the call stack, and ...
Read more >Pros and Cons of TypeScript
TypeScript supports concepts from class-based object-oriented programming (OOP) like classes, interfaces, inheritance, and more.
Read more >Improving Workers TypeScript support
Improving Workers TypeScript support: accuracy, ergonomics and interoperability. TypeScript makes it easy for developers to write code that ...
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
Now I’m getting
primus_1.Primus is not a constructor
on the node window. My code looks like this:Anybody has similar problem? Am I doing something wrong?
Thanks
Targeting tomorrow for the pr 👍
The adding of
"typings": "primus.d.ts"
will be a part of it.