rule-filter-validator
Version:
A object and scope validator based on structured rules
12 lines (11 loc) • 392 B
TypeScript
import type { Filter } from './types';
/**
*
* @param filter Filter
* @param oldField string name of field to rename
* @param newField string new name of field
* @param filterPath (optional)
* @param _history (private)
* @returns
*/
export declare function renameFieldInFilter(filter: Filter, oldField: string, newField: string, filterPath?: string, _history?: string): Filter | any;