+ update of definitions to make use of union types

This commit is contained in:
reppners
2015-03-06 08:23:21 +01:00
parent a6cbfba663
commit e26a0474bd
3 changed files with 72 additions and 202 deletions
+2 -8
View File
@@ -13,14 +13,8 @@ declare module JSData {
queryTransform?: (resourceName:string, params:DSFilterParams)=>any;
httpConfig?: any;
forceTrailingSlash?: boolean;
log?: any;
// TODO wait for union types to be supported
// log: (message?: any, ...optionalParams: any[])=> void;
// log: boolean;
error?: any;
// TODO wait for union types to be supported
// error: (message?: any, ...optionalParams: any[])=> void;
// error: boolean;
log?: boolean | ((message?:any, ...optionalParams:any[])=> void);
error?: boolean | ((message?:any, ...optionalParams:any[])=> void);
}
interface DSHttpAdapterPromiseResolveType {