-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
53 lines (45 loc) · 959 Bytes
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
declare module 'git-state';
type TableHeaderType = 'long' | 'short';
type TableHeader =
| 'displayPath'
| 'branch'
| 'ahead'
| 'dirty'
| 'untracked'
| 'stashes';
type FSStat = FileSystem.Stats;
type Stat = {
path: string;
stat: FSStat;
};
type GitStatus = {
branch: string;
issues: string;
untracked: string;
ahead: string;
stashes: string;
dirty: string;
};
interface ExtendedGitStatus extends GitStatus {
git: boolean;
path: string;
displayPath: string;
}
interface DebugFn {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(...args: any[]): void;
}
interface CommandOptions {
compactness: string;
showGitOnly: boolean;
shouldShowVersion: boolean;
shouldShowHelp: boolean;
shouldShowSimpleOutput: boolean;
shouldSort: boolean;
sortDirection: keyof SORT_DIRECTIONS;
needsAttention: boolean;
debug: DebugFn;
cwd: string;
ignore?: string | RegExp;
match?: string | RegExp;
}