@chamn/engine
Version:
24 lines (23 loc) • 772 B
TypeScript
import { JSExpressionPropType } from '@chamn/model';
export type InnerSinglePropertyEditorProps = {
value?: {
property: string;
value: JSExpressionPropType | string;
};
onValueChange: (value: {
property: string;
value: JSExpressionPropType | string;
}) => void;
onDelete?: () => void;
onCreate?: (value: {
property: string;
value: JSExpressionPropType | string;
}) => {
errorKey?: string[];
} | void;
mod?: 'create' | 'edit';
};
export type InnerSinglePropertyEditorRef = {
reset: () => void;
};
export declare const SinglePropertyEditor: import('react').ForwardRefExoticComponent<InnerSinglePropertyEditorProps & import('react').RefAttributes<InnerSinglePropertyEditorRef>>;