ng2-json-editor
Version:
Angular2 component for editing large json documents
17 lines (16 loc) • 524 B
TypeScript
import { JSONSchema } from '../interfaces';
import { PathUtilService } from './path-util.service';
export declare class JsonSchemaService {
private pathUtilService;
private schema;
constructor(pathUtilService: PathUtilService);
setSchema(schema: JSONSchema): void;
/**
* Returns the schema extracted from this path
*/
forPathArray(path: Array<any>): JSONSchema;
/**
* Returns the schema extracted from the json-pointer string
*/
forPathString(path: string): JSONSchema;
}