From 722dcdd88face3724c77d23bc36a00524e552551 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 26 Mar 2026 13:52:30 +0100 Subject: fix: resolve typescript/lint errors --- apps/web/src/lib/animation/target-resolver.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'apps/web/src/lib/animation/target-resolver.ts') diff --git a/apps/web/src/lib/animation/target-resolver.ts b/apps/web/src/lib/animation/target-resolver.ts index e801bc68..10b83775 100644 --- a/apps/web/src/lib/animation/target-resolver.ts +++ b/apps/web/src/lib/animation/target-resolver.ts @@ -204,15 +204,13 @@ function buildEffectParamDescriptor({ }; } -export function isAnimationPath({ - propertyPath, -}: { - propertyPath: string; -}): propertyPath is AnimationPath { +export function isAnimationPath( + propertyPath: string, +): propertyPath is AnimationPath { return ( - isAnimationPropertyPath({ propertyPath }) || - isGraphicParamPath({ propertyPath }) || - isEffectParamPath({ propertyPath }) + isAnimationPropertyPath(propertyPath) || + isGraphicParamPath(propertyPath) || + isEffectParamPath(propertyPath) ); } @@ -223,7 +221,7 @@ export function resolveAnimationTarget({ element: TimelineElement; path: AnimationPath; }): AnimationPathDescriptor | null { - if (isAnimationPropertyPath({ propertyPath: path })) { + if (isAnimationPropertyPath(path)) { const propertyDefinition = getAnimationPropertyDefinition({ propertyPath: path, }); -- cgit v1.3.1