Skip to content

Commit

Permalink
fix: changed segment type to tuple (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Aug 18, 2023
1 parent 6c2b00b commit 9da84dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-comics-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dotlottie/dotlottie-js": patch
---

changed segment type to tuple
2 changes: 1 addition & 1 deletion packages/dotlottie-js/src/common/dotlottie-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DotLottieStatePlaybackSettingsSchema = merge([
PlaybackOptionsSchema,
object({
playOnScroll: optional(tuple([number([minValue(0), maxValue(1)]), number([minValue(0), maxValue(1)])])),
segments: optional(union([array(number()), string()])),
segments: optional(union([tuple([number(), number()]), string()])),
}),
]);
export type DotLottieStatePlaybackSettings = Output<typeof DotLottieStatePlaybackSettingsSchema>;
Expand Down

0 comments on commit 9da84dd

Please sign in to comment.