diff --git a/types/carbon__motion/carbon__motion-tests.ts b/types/carbon__motion/carbon__motion-tests.ts index e69de29bb2..6bcc820f5d 100644 --- a/types/carbon__motion/carbon__motion-tests.ts +++ b/types/carbon__motion/carbon__motion-tests.ts @@ -0,0 +1,8 @@ +import { easings, motion } from "@carbon/motion"; + +const easingNames = Object.keys(easings); + +const firstEasing = easingNames[0]; +const firstMode = Object.keys(firstEasing)[0]; + +motion(firstEasing, firstMode); diff --git a/types/carbon__motion/index.d.ts b/types/carbon__motion/index.d.ts index 9570133327..5027843174 100644 --- a/types/carbon__motion/index.d.ts +++ b/types/carbon__motion/index.d.ts @@ -18,11 +18,8 @@ export const easings: { }; }; -export function motion(name: any, mode: any): any; +export function motion(name: string, mode: string): string; export namespace motion { - const prototype: { - }; - + const prototype: {}; } -