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

Convert the easing helpers to typescript #10627

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

etimberg
Copy link
Member

Converts the easing helpers to TS.

One thing to consider here is where we want to store types like EasingFunction. I was tempted to move the definition into helpers.easing.ts and redefine it to be type EasingFunction = keyof effects. If we're good with that change, I can add it on

@etimberg etimberg added the type: types Typescript type changes label Aug 24, 2022
@etimberg etimberg added this to the Version 4.0 milestone Aug 24, 2022
@kurkle
Copy link
Member

kurkle commented Aug 25, 2022

I'd move the type(s)

@kurkle
Copy link
Member

kurkle commented Aug 25, 2022

Random thought, we could visualize the effects as line charts in the docs

@dangreen
Copy link
Collaborator

dangreen commented Aug 25, 2022

@etimberg Hi. You should add these helpers here

https://github.com/chartjs/Chart.js/blob/master/src/helpers/types.ts

@etimberg
Copy link
Member Author

Awesome, will try and do that tonight

@etimberg
Copy link
Member Author

Types moved and exported

@etimberg etimberg merged commit b95ba3d into chartjs:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: types Typescript type changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants