Files
owl/web/static/src/ts/core/ajax.ts
T

23 lines
596 B
TypeScript
Raw Normal View History

2019-01-31 13:19:30 +01:00
//------------------------------------------------------------------------------
// Types
//------------------------------------------------------------------------------
2019-01-29 14:15:36 +01:00
export interface RPCQuery {
2019-01-26 20:22:32 +01:00
model: string;
method: string;
args: any;
}
export interface IAjax {
2019-01-29 14:15:36 +01:00
rpc(rpc: RPCQuery): Promise<any>;
2019-01-26 20:22:32 +01:00
}
2019-01-31 13:19:30 +01:00
//------------------------------------------------------------------------------
// Ajax
//------------------------------------------------------------------------------
2019-01-26 20:22:32 +01:00
export class Ajax implements IAjax {
2019-01-29 14:15:36 +01:00
rpc(rpc: RPCQuery): Promise<any> {
2019-01-26 20:22:32 +01:00
return Promise.resolve(1);
}
}