UNPKG

@quiet-front-end/json-schema-editor-antd

Version:
17 lines (16 loc) 832 B
import { JsonSchema } from 'json-schema-library'; import { 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 const SchemaTypes: string[]; 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[]): JSONSchema7Definition; export declare const inferSchema: (data: any) => any;