-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript declarations! #1320
TypeScript declarations! #1320
Conversation
ec86233
to
f37aa91
Compare
Absolute lifesaver. Thank you!! I have been maintaining these manually the ones I use and it is quite a lot of work. |
There is a lot more work to do regarding documentation here (probably dozens of hours). But the types here should be ready to review, and I think we probably shouldn’t block this PR on finishing the documentation—just on the types themselves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Can't wait to start adding jsdoc everywhere.
And a medal for removing 500+ lines (+3,300 −3,841) 🏅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, so nice to finally have a working full-breadth implementation!
* remove typescript machinery * checkpoint typescript declarations * restore mocha and eslint for typescript * tweak package.json * port tests to TypeScript * fix plural inconsistency * more better types * allow empty interfaces, for now * fix plural test * remove jsdoc annotations * fix test names, again * export all types * remove build * more better types * add missing exports * RenderFunction, strict * more better types * more better transform types * more better types * more better types * still more better types * quantize, quantile scale options * nullish markish * more better types * even more better types * avoid name conflicts with types * still more better types * unstrict * allow cased color scheme names * more better types * more documentation; ScaleDefaults * turn off data type checking * fix remaining TypeScript errors; enable tsc * auto types * stricter lint * better line, area options, and more * more documentation * linearRegression[XY] dense interval * stricter percentile * better bar, rect intervals * more percentiles * more interval types * tree, valueof, column * style, className * comment re. omit interval * autocomplete stack order * z for stack, map, select
TODO
yarn test:tsc
Possible future enhancements: