import { transformSceneNode } from '@plugin/transformers'; import { PenpotNode } from '@ui/lib/types/penpotNode'; import { Children } from '@ui/lib/types/utils/children'; export const transformChildren = async ( node: ChildrenMixin, baseX: number = 0, baseY: number = 0 ): Promise => { return { children: ( await Promise.all(node.children.map(child => transformSceneNode(child, baseX, baseY))) ).filter((child): child is PenpotNode => !!child) }; };