index.d.ts
885 Bytes
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
32
33
34
35
36
37
interface FileReplicator {
start(retries?:number) : void;
clear() : void;
cleanup() : void;
pushChanges(change: any) : void;
on(event:string, handler:(...params: any[]) => void) : FileReplicator;
once(event:string, handler:(...params: any[]) => void) : FileReplicator;
removeAllListeners() : FileReplicator;
}
declare var bsyncClient: {
CONFIG_TARGET_DIRECTORY : string ;
ENV_CORDOVA : string;
ENV_ELECTRON : string;
ENV_UNKNOWN : string;
ServiceLocator : {
getEnvironment : () => string;
getConfig : () => {
getConfig : (key:string) => any;
setConfig : (key:string, value:any) => void;
hasConfig : (key:string) => boolean;
};
getFileReplicator : () => FileReplicator;
}
};
declare module "bsync-client" {
export = bsyncClient;
}