From d2422d12098bf839de5532fb5bef369853001819 Mon Sep 17 00:00:00 2001 From: Luka Buljan Date: Thu, 14 Dec 2023 13:49:49 +0100 Subject: [PATCH] Fixed createAnimationTimeline type inference causing type incompatibility errors --- package.json | 2 +- src/utils/animations.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 93a1bbc..0814f67 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "Luka Buljan ", "Vlatko Vlahek " ], - "version": "1.0.10", + "version": "1.0.11", "license": "MIT", "types": "lib/typescript/index.d.ts", "main": "lib/module/index.js", diff --git a/src/utils/animations.ts b/src/utils/animations.ts index 5616685..849b7e9 100644 --- a/src/utils/animations.ts +++ b/src/utils/animations.ts @@ -205,12 +205,12 @@ export function animateSequence( }; } -interface AnimationTimelineConfiguration { - [ms: number]: ElementAnimation[]; +interface AnimationTimelineConfiguration { + [ms: number]: ElementAnimation[]; } -export function createAnimationTimeline( - timeline: AnimationTimelineConfiguration, +export function createAnimationTimeline( + timeline: AnimationTimelineConfiguration, ) { const times = Object.keys(timeline).map(ms => Number(ms));