Skip to content

fix(types): lowercase reversed and alternate in WAAPIAnimationOptions - #1185

Open
Hashim1999164 wants to merge 1 commit into
juliangarnier:devfrom
Hashim1999164:fix/waapi-reversed-alternate-casing
Open

fix(types): lowercase reversed and alternate in WAAPIAnimationOptions#1185
Hashim1999164 wants to merge 1 commit into
juliangarnier:devfrom
Hashim1999164:fix/waapi-reversed-alternate-casing

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Fixes incorrect JSDoc casing on WAAPIAnimationOptions (Reversed / Alternate -> reversed / alternate).
  • Updates the generated dist/modules/types/index.d.ts so TypeScript matches runtime.

src/waapi/waapi.js already reads params.reversed and params.alternate. The uppercase names caused IDE/TS suggestions that silently fail at runtime. Other typedefs already use lowercase.

Fixes #1113

Test plan

  • Confirm WAAPIAnimationOptions in dist/modules/types/index.d.ts exposes reversed and alternate
  • Confirm JSDoc in src/types/index.js matches
  • Spot-check that waapi.animate(..., { reversed: true, alternate: true }) still works as before

…ions

Matches the runtime WAAPI params and other typedefs so TypeScript/IDE
hints suggest the properties that actually work.

Fixes juliangarnier#1113
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.

1 participant