UNPKG

react-plain-json-editor

Version:
36 lines 1.06 kB
/// <reference types="react" /> declare type PlainJsonEditorProps = { value: {}; onChange: (_: {}) => void; onSubmit: (_: {}) => void; error: string; showInnerError: boolean; submitKeys: string[]; serializer: (_: string) => {}; deserializer: (_: {}) => string; formatAfterSubmit: boolean; onSerializeError: (e: Error) => void; styles: { root?: {}; textarea?: {}; error?: {}; }; }; export declare const PlainJsonEditor: { (props: PlainJsonEditorProps): JSX.Element; defaultProps: { value: {}; onChange: (_: {}) => void; onSubmit: (_: {}) => void; error: string; showInnerError: boolean; submitKeys: string[]; serializer: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any; deserializer: (json: {}) => string; formatAfterSubmit: boolean; onSerializeError: (e: Error) => void; styles: {}; }; }; export {}; //# sourceMappingURL=PlainJsonEditor.d.ts.map