framer-motion
Version:
An open source and production-ready motion library for React on the web
11 lines (10 loc) • 563 B
TypeScript
import { MotionValue } from "../../value";
declare type VariantNameList = string[];
export declare const resolveVariantLabels: (variant?: string | VariantNameList | MotionValue<any> | undefined) => VariantNameList;
/**
* Hooks in React sometimes accept a dependency array as their final argument. (ie useEffect/useMemo)
* When values in this array change, React re-runs the dependency. However if the array
* contains a variable number of items, React throws an error.
*/
export declare const asDependencyList: (list: VariantNameList) => string[];
export {};