ng2-json-editor
Version:
Angular2 component for editing large json documents
15 lines (14 loc) • 573 B
TypeScript
import { PipeTransform } from '@angular/core';
import { JSONSchema } from '../interfaces';
import { CompareKeysBySchemaService } from '../services';
export declare class SortKeysBySchemaPipe implements PipeTransform {
private compareKeysBySchemaService;
constructor(compareKeysBySchemaService: CompareKeysBySchemaService);
/**
* WARN: uses Array.sort hence mutates the first param
*
* @param keys keys in the object
* @param schema schema of the parent object
*/
transform(keys: Array<string>, schema: JSONSchema): Array<string>;
}