@flodejs/json-schema-editor-antd
Version:
Json Schema Editor
17 lines (16 loc) • 827 B
TypeScript
import { JsonSchema } from 'json-schema-library';
import { JSONSchemaDefinition, JSONSchemaTypeName } 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: JSONSchemaTypeName | JSONSchemaTypeName[]): JSONSchemaDefinition;
export declare const inferSchema: (data: any) => any;