UNPKG

@cianciarusocataldo/demo-ui

Version:

A tiny UI library designed for build interactive demos for every react app

24 lines (23 loc) 705 B
import { PropObject, PropType } from "../types"; /** * Format a valued based on the given type * * @param value a value to format * @param type the prop's type * * @returns a formatted value for the prop */ export declare const formatValue: (value: any, type: PropType) => any; /** * * * @param base * @param toMerge * @returns */ export declare const merge: (base: Record<string, any>, toMerge: Record<string, any>) => { [x: string]: any; }; export declare const getProps: (props: Record<string, PropObject>) => {}; export declare const takeScreenshot: (element: HTMLElement, background?: string) => void; export declare const downloadFile: (url: string) => void;