fix agent types (#13340)

This commit is contained in:
Aditya Bist
2020-11-10 13:38:57 -08:00
committed by GitHub
parent d7a6b55f82
commit 8bbcfff119
5 changed files with 42 additions and 57 deletions

View File

@@ -1584,6 +1584,7 @@ declare namespace Slick {
public setPagingOptions(args: PagingOptions): void;
public getPagingInfo(): PagingOptions;
public getItems(): T[];
public getFilteredItems(): T[]; // manually adding this type - it's present in the definition but not the typings file from DefinitelyTyped
public setItems(data: T[], objectIdProperty?: string): void;
public setFilter(filterFn: (item: T, args: any) => boolean): void; // todo: typeof(args)
public sort(comparer: Function, ascending: boolean): void; // todo: typeof(comparer), should be the same callback as Array.sort