UNPKG

951 BTypeScriptView Raw
1import { FilterImpl } from '../../template/filter/filter-impl';
2import { Scope } from '../../context/scope';
3export declare const join: (v: any[], arg: string) => string;
4export declare const last: (v: any) => any;
5export declare const first: (v: any) => any;
6export declare const reverse: (v: any[]) => any[];
7export declare function sort<T>(this: FilterImpl, arr: T[], property?: string): any[];
8export declare const size: (v: string | any[]) => number;
9export declare function map(this: FilterImpl, arr: Scope[], property: string): object[];
10export declare function compact<T>(this: FilterImpl, arr: T[]): any[];
11export declare function concat<T1, T2>(v: T1[], arg: T2[] | T2): (T1 | T2)[];
12export declare function slice<T>(v: T[], begin: number, length?: number): T[];
13export declare function where<T extends object>(this: FilterImpl, arr: T[], property: string, expected?: any): T[];
14export declare function uniq<T>(arr: T[]): T[];