nlp.js
nlp.js copied to clipboard
@types/nlp.js
Is your feature request related to a problem? Please describe. Typescript developers rely on type definitions for their IDEs to provide reliable autocompletes. This gives them the ability to discover the API of any given library a lot faster than by referring to documentation. nlp.js would be more accessible and find more adoption and be overall even more awesome than it already is.
Describe the solution you'd like Provide type definitions via Definitely Typed.
Describe alternatives you've considered Alternatives could be:
- An API documentation could be provided.
- Types could be added to the code. As typescript is a superset of javascript it could be done iteratively. This enhances the maintainability of the code as it allows for IDEs to help with refactoring. The code would have to be transpiled to javascript which would in turn generate the code as it is now or something very much similar.
Additional context https://github.com/DefinitelyTyped/DefinitelyTyped (31k Github Stars) http://earlbarr.com/publications/typestudy.pdf (Bugs can be found using Typescript) https://madnight.github.io/githut/#/pull_requests/2020/3 (7.5% of all repositories are Typescript. 20.17% of all repositories are Javascript) https://www.typescriptlang.org/ (Typescript website)
This would be fabulous indeed
+1
Very need it
Please :)
Where's the API documentation?
+1
+1
+1
:+1: :) this is really needed.
PRs welcome I would assume ;-)
@Apollon77 Would you prefer .d.ts typings added to the project, or full-blown TS conversion?
Honestly a full blown TS conversion would be "cool" but in my eyes unrealitsic to achieve (or at least an immense effort - but good it is a monorepo so in fact each package could be migrated one by one ... for a TS migration I'm personally also unsure for the risk because I donot know howcomplete the test coverage is really :-)
Said that I personally (but I have nothing to decide here, so just my opinion) would add typings as .d.ts files one by one in the relevant packages