ng2-json-editor
Version:
Angular2 component for editing large json documents
19 lines (18 loc) • 757 B
TypeScript
import { JSONSchema } from '../interfaces';
export declare class FindReplaceAllService {
/**
* Does deep replace when it finds the occurance in an immutable List and Map
* uses schema to skip disabled properties
*
* @param {List<any> | Map<string, any} immutable
* @param {Object} schema
* @param {string} find
* @param {replace} replace
* @param {boolean} matchWhole - looks for whole match to a string property of immutable
* @param {Array<any> | Object} diffHtml - TODO: describe
*/
findReplaceInImmutable(immutable: any, schema: JSONSchema, find: string, replace: string, exact?: boolean, diffHtml?: Array<any> | Object): {
replaced: any;
diffHtml: Array<any> | Object;
};
}