UNPKG

@visactor/react-vtable

Version:
17 lines (16 loc) 558 B
import type { ReactElement } from 'react'; import React from 'react'; export interface BaseComponentProps { id?: string | number; children?: React.ReactNode; } type ComponentProps = BaseComponentProps & { updateId?: number; componentId?: string; componentIndex?: number; }; export declare const createComponent: <T extends ComponentProps>(componentName: string, optionName: string, supportedEvents?: Record<string, string> | null, isSingle?: boolean) => { (props: T): React.ReactElement | null; displayName: string; }; export {};