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/property-registry.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'apps/web/src/lib/animation/property-registry.ts') diff --git a/apps/web/src/lib/animation/property-registry.ts b/apps/web/src/lib/animation/property-registry.ts index 0b28e783..46990754 100644 --- a/apps/web/src/lib/animation/property-registry.ts +++ b/apps/web/src/lib/animation/property-registry.ts @@ -245,12 +245,10 @@ const ANIMATION_PROPERTY_REGISTRY: Record< }, }; -export function isAnimationPropertyPath({ - propertyPath, -}: { - propertyPath: string; -}): boolean { - return propertyPath in ANIMATION_PROPERTY_REGISTRY; +export function isAnimationPropertyPath( + propertyPath: string, +): propertyPath is AnimationPropertyPath { + return Object.hasOwn(ANIMATION_PROPERTY_REGISTRY, propertyPath); } export function getAnimationPropertyDefinition({ -- cgit v1.3.1