1

Closed

SP.Search - SortCollection Add Method definition is incorrect

description

Please fix the type definition for SortCollection class in SP.Search.d.ts. The signature of add() method should be changed.
     export class SortCollection extends SP.ClientObjectCollection<Sort> {
            itemAt: (index: number) => Sort;
            get_item: (index: number) => Sort;
            get_childItemType: () => Object;
            add: (property: Sort) => void;
            clear: () => void;
        }
should be:
export class SortCollection extends SP.ClientObjectCollection<Sort> {
            itemAt: (index: number) => Sort;
            get_item: (index: number) => Sort;
            get_childItemType: () => Object;
            add: (property: string, sortDirection: SortDirection) => void;
            clear: () => void;
        }
Closed Jun 15, 2014 at 6:28 PM by gandjustas

comments

gandjustas wrote Jun 15, 2014 at 6:28 PM

Fixed