UNPKG

react-json-schema-editor-antd

Version:

Json Schema Editor

12 lines (11 loc) 679 B
import { JSONSchema7 } from '../JsonSchemaEditor/types'; interface SchemaState { schema: JSONSchema7; setSchema: (schema: (draft: JSONSchema7) => void) => void; setSchemaRaw: (schema: JSONSchema7) => void; } export declare const useSchemaStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SchemaState>, "setState"> & { setState(nextStateOrUpdater: SchemaState | Partial<SchemaState> | ((state: import("immer").WritableDraft<SchemaState>) => void), shouldReplace?: false | undefined): void; setState(nextStateOrUpdater: SchemaState | ((state: import("immer").WritableDraft<SchemaState>) => void), shouldReplace: true): void; }>; export {};