-
Notifications
You must be signed in to change notification settings - Fork 22
/
amf.d.ts
32 lines (27 loc) · 942 Bytes
/
amf.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Type definitions for amfjs
// Project: https://github.com/emilkm/amfjs
// Definitions by: Emil Malinov
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace amf {
var classes: any[];
var clients: Client[];
function registerClass(name: string, clazz: any);
function getClient(destination: string): Client;
class Client {
constructor(destination: string, endpoint: string, timeout?: number);
setSessionId(value: string);
releaseQueue();
invoke<Response>(source: string, operation: string, params: any, block: boolean = false, nobatch: boolean = false): Promise<Response>;
}
interface ResponseFactory {
new (code, message, detail, data, $scope): Response;
}
var Response: ResponseFactory;
interface Response {
$scope: any;
code: number;
message: string;
detail: any;
data: any;
}
}