forked from peteward44/node-svn-ultimate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (37 loc) · 1.59 KB
/
index.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
32
33
34
35
36
37
38
39
40
declare module "@recih/node-svn-ultimate" {
type Callback<T = any> = (err: any, result: T) => void;
type Options = {
cwd?: string;
shell?: string;
maxBuffer?: number;
params?: string[];
trustServerCert?: boolean;
stdoutAsBuffer?: boolean;
username?: string;
password?: string;
};
interface CommitOptions extends Options {
quiet?: boolean;
depth?: number;
msg?: string;
}
function setGlobalExecuteEnv(env: Record<string, string>);
namespace commands {
function info(files: string | string[], cb: Callback);
function info(files: string | string[], options: Options, cb: Callback);
function list(files: string | string[], cb: Callback);
function list(files: string | string[], options: Options, cb: Callback);
function lock(files: string | string[], cb: Callback);
function lock(files: string | string[], options: Options, cb: Callback);
function unlock(files: string | string[], cb: Callback);
function unlock(files: string | string[], options: Options, cb: Callback);
function update(files: string | string[], cb: Callback);
function update(files: string | string[], options: Options, cb: Callback);
function revert(files: string | string[], cb: Callback);
function revert(files: string | string[], options: Options, cb: Callback);
function commit(files: string | string[], cb: Callback);
function commit(files: string | string[], options: CommitOptions, cb: Callback);
function exp(src: string, dest: string, cb: Callback);
function exp(src: string, dest: string, options: Options, cb: Callback);
}
}