UNPKG

1.04 kBTypeScriptView Raw
1import { FilterImpl } from '../../template/filter/filter-impl';
2import { Scope } from '../../context/scope';
3export declare const join: (v: any[], arg: string) => any;
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 function sortNatural<T>(input: T[], property?: string): any[];
9export declare const size: (v: string | any[]) => number;
10export declare function map(this: FilterImpl, arr: Scope[], property: string): object[];
11export declare function compact<T>(this: FilterImpl, arr: T[]): any[];
12export declare function concat<T1, T2>(v: T1[], arg?: T2[]): (T1 | T2)[];
13export declare function slice<T>(v: T[] | string, begin: number, length?: number): T[] | string;
14export declare function where<T extends object>(this: FilterImpl, arr: T[], property: string, expected?: any): T[];
15export declare function uniq<T>(arr: T[]): T[];