Skip to content

Ensure JxlOptions matches the options jxl() accepts - #4602

Open
ramin-010 wants to merge 1 commit into
lovell:mainfrom
ramin-010:jxl-type-options
Open

Ensure JxlOptions matches the options jxl() accepts#4602
ramin-010 wants to merge 1 commit into
lovell:mainfrom
ramin-010:jxl-type-options

Conversation

@ramin-010

@ramin-010 ramin-010 commented Sep 9, 2026

Copy link
Copy Markdown

I found this while comparing the JSDoc with the type definitions for the different format options. JxlOptions was missing AnimationOptions, even though JXL supports animation at runtime, so TypeScript was rejecting things like jxl({ loop: 3 }) and jxl({ delay: [100, 200] }). I added AnimationOptions to JxlOptions and added two type tests for these cases.

I also noticed the effort comment says 3–9, while the runtime check and JSDoc both allow 1–9, so I fixed that as well. Both changes are in the same interface/type mismatch, so I kept them together, but I can split the effort change into a separate PR if preferred.

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