ng2-json-editor
Version:
Angular2 component for editing large json documents
17 lines (16 loc) • 503 B
TypeScript
import { JSONSchema } from '../interfaces';
export declare class ComponentTypeService {
/**
* It returns the editor specific type of given schema
* In other words, which component to use for given schema.
*
* Possible values:
* - string, number, boolean, object, enum
* - primitive-list, table-list, complex-list
* - disabled, autocomplete
*
* @param {Object} schema
* @return {string}
*/
getComponentType(schema: JSONSchema): string;
}