wngx-filter
Version:
Angular 7 generic components for array filter in *ngFor directive.
21 lines (20 loc) • 596 B
TypeScript
import { PipeTransform } from '@angular/core';
export interface FilterParam {
field: string;
value: string | FilterParam[];
}
export declare class WfilterPipe implements PipeTransform {
transform(values: any[], filter: FilterParam[] | string | number): any;
private _checkSimpleType;
private _checkComplexType;
private _checkValue;
private _parseValue;
private _existDot;
private _existFieldValue;
private _replaceSpecialChars;
}
/**
* function checkTypeIsObject(v: any): any {
return typeof v === 'object' && v !== null;
}
*/