UNPKG

react-json-schema-editor-antd

Version:

Json Schema Editor

19 lines (18 loc) 1.03 kB
import { JsonSchema } from 'json-schema-library'; import { JSONSchema7, JSONSchema7Definition, JSONSchema7TypeName } from './types'; export declare function getJsonSchemaKey(schema: JsonSchema): string | undefined; export declare function resolveJsonSchemaRef(schema: JsonSchema): Promise<JsonSchema>; export declare function parseJsonStr(str: any): any; export declare function getPropertyIndex(obj: any, propName: string): number; export declare function getValueByPath(obj: any, path: number[]): any; export declare const StringFormat: { value: string; }[]; export declare const SchemaTypeOptions: { value: string; }[]; export declare function getDefaultSchema(type: JSONSchema7TypeName | JSONSchema7TypeName[], oldSchema?: JSONSchema7): JSONSchema7Definition; export declare const inferSchema: (data: any) => any; export declare const getInitDefaultSchema: (schema: any) => any; export declare const removeLastItemsMutate: (arr: any[]) => any[]; export declare const getDragId: (arr: any[], orderKey: string) => any;