Skip to content

Conversation

@timrodz
Copy link

@timrodz timrodz commented Jan 5, 2026

I've been working with this library on a project, and noticed that easing functions can be named since they come from a specific source. Also fixed a typo 🌱

packages/core/src/data/constants.ts

  • Creates string literal type EASING
  • Modifies the type definition for EASINGS to be a Record<EASING, ...> instead of Record<string, ...>

packages/core/src/utils/animation.ts

  • Fixes typo for interpoaltion -> interpolation
  • Fixes missing doc link {@link CONSTANTS.EASINGS} -> {@link EASINGS}

Benefit: When interacting with CONSTANTS.EASINGS a developer can now get intellisense for which functions are available - Also applies to those using this library in their own projects

image

Merge request checklist

  • All lints and tests pass. If needed, new tests were added.
  • If needed, the documentation has been updated.

@timrodz timrodz marked this pull request as draft January 5, 2026 10:18
@timrodz timrodz force-pushed the refactor/easing-function-names branch from e6fe2b7 to f487d84 Compare January 5, 2026 10:22
@timrodz timrodz marked this pull request as ready for review January 5, 2026 10:22
@mistic100 mistic100 merged commit d808588 into mistic100:main Jan 5, 2026
3 of 4 checks passed
@mistic100 mistic100 added this to the 5.14.1 milestone Jan 5, 2026
@github-actions
Copy link

This feature/bug fix has been released in version 5.14.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants