Skip to content
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

Add TypeScript declaration files #22

Merged
merged 15 commits into from
Feb 4, 2022

Conversation

LeeLenaleee
Copy link
Contributor

Add build in typings for TS users

types/index.d.ts Outdated Show resolved Hide resolved
types/index.d.ts Outdated Show resolved Hide resolved
types/index.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Jithin V Mohan <jithinvmohan@gmail.com>
Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LeeLenaleee, that's a good idea to add TS definitions for this plugin!

Can you also add tests as it's done here: https://github.com/chartjs/chartjs-plugin-datalabels/tree/master/types/test but also the associated test-types and test npm scripts.

package.json Outdated Show resolved Hide resolved
types/index.d.ts Outdated Show resolved Hide resolved
types/options.d.ts Outdated Show resolved Hide resolved
types/index.d.ts Outdated Show resolved Hide resolved
@simonbrunel simonbrunel added this to the Version 2.0 milestone Jan 30, 2022
@LeeLenaleee
Copy link
Contributor Author

Added the lint and tests for the types

package.json Outdated Show resolved Hide resolved
@simonbrunel simonbrunel changed the title Feature/build in typings Add TypeScript declaration files Feb 4, 2022
@simonbrunel simonbrunel merged commit beea2db into chartjs:master Feb 4, 2022
@simonbrunel
Copy link
Member

Thank you @LeeLenaleee. I will try to release a beta version later this week.

@LeeLenaleee LeeLenaleee deleted the feature/build-in-typings branch February 4, 2022 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants