svelte-motion
Version:
Svelte animation library based on the React library framer-motion.
13 lines (12 loc) • 384 B
TypeScript
/**
based on framer-motion@4.1.17,
Copyright (c) 2018 Framer B.V.
*/
/**
* Recursively traverse up the tree to check whether the provided child node
* is the parent or a descendant of it.
*
* @param parent - Element to find
* @param child - Element to test against parent
*/
export declare const isNodeOrChild: (parent: Element, child?: Element | null | undefined) => boolean;