UNPKG

@chamn/engine

Version:
17 lines (16 loc) 590 B
import { CSetter } from '../../component'; import { TLogicRequestAPIItem } from '@chamn/model'; export type RightPanelConfig = { customPropertySetterMap?: Record<string, CSetter>; requestAPINode?: { customAPIInput: TCustomAPIInput; }; }; export type TCustomAPIInput = (props: { value: any; onChange: (value: any) => void; form: { updateFields: (newValue: Partial<TLogicRequestAPIItem>) => void; getFields: () => Pick<TLogicRequestAPIItem, 'apiPath' | 'body' | 'header' | 'query' | 'method' | 'responseVarName'>; }; }) => React.ReactNode;