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

15 lines
253 B
TypeScript
Raw Normal View History

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
}
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);
}
}