mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Updated typescript definitions for angular-odata-resources. Added support for $select
This commit is contained in:
parent
9f9ce5f252
commit
9f02d024a6
@ -197,3 +197,12 @@ users = odataResourceClass.odata()
|
||||
var countResult = odataResourceClass.odata().count();
|
||||
var total = countResult.result;
|
||||
|
||||
|
||||
|
||||
|
||||
var usersSelect1 = odataResourceClass.odata()
|
||||
.select('name', 'user');
|
||||
|
||||
|
||||
var usersSelect2 = odataResourceClass.odata()
|
||||
.select(['name', 'user']);
|
||||
@ -278,14 +278,17 @@ declare module OData {
|
||||
private expandables;
|
||||
constructor(callback: ProviderCallback<T>);
|
||||
filter(operand1: any, operand2?: any, operand3?: any): Provider<T>;
|
||||
orderBy(arg1: any, arg2?: any): Provider<T>;
|
||||
orderBy(arg1: string, arg2?: string): Provider<T>;
|
||||
take(amount: number): Provider<T>;
|
||||
skip(amount: number): Provider<T>;
|
||||
private execute();
|
||||
query(success?: any, error?: any): T[];
|
||||
single(success?: any, error?: any): T;
|
||||
get(data: any, success?: any, error?: any): T;
|
||||
expand(params: any, otherParam1?: any, otherParam2?: any, otherParam3?: any, otherParam4?: any, otherParam5?: any, otherParam6?: any, otherParam7?: any): Provider<T>;
|
||||
query(success?: ((p:T)=>void), error?: (()=>void)): T[];
|
||||
single(success?: ((p:T)=>void), error?: (()=>void)): T;
|
||||
get(key: any, success?: ((p:T)=>void), error?: (()=>void)): T;
|
||||
expand(...params: string[]): Provider<T>;
|
||||
expand(params: string[]): Provider<T>;
|
||||
select(...params: string[]): Provider<T>;
|
||||
select(params: string[]): Provider<T>;
|
||||
count(success?: (result: ICountResult) => any, error?: () => any):ICountResult;
|
||||
withInlineCount(): Provider<T>;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user