UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS

11 lines (10 loc) 751 B
import { JSXElementConstructor, ReactNode } from "react"; //#region src/utils.d.ts declare function sleep(timeInMs: number): Promise<unknown>; declare function hasChildWithProps(children: ReactNode, childType: '*' | JSXElementConstructor<any>, propertyNames: string | Array<string>, notPropertyNames?: string | Array<string>): boolean; declare function rangeStep(start: number, end: number, step: number): number[]; declare function extendChildren(children: ReactNode, props: (childProps: Record<string, unknown>) => Record<string, unknown>, displayName?: string): ReactNode; declare function onlyText(node: ReactNode): string; //#endregion export { extendChildren, hasChildWithProps, onlyText, rangeStep, sleep }; //# sourceMappingURL=utils.d.ts.map