@visactor/react-vtable
Version:
The react version of VTable
13 lines (12 loc) • 455 B
TypeScript
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) => React.FC<T>;
export {};