-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
76 lines (69 loc) · 1.58 KB
/
types.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import type CLI from './cli';
import type Command from './command';
import type Dir from './dir';
import type Env from './env';
export type Output = {
output: string;
};
export type Input = {
user: string;
server: string;
cwd: string;
command: string;
};
/**
* Log entry for the CLI.
* Either define "`user`, `server`, `cwd`, and `command`" for input, "`output`" for output or both.
*/
export type LogEntry = Output | Input;
type NamedArguments = { [flag: string]: string[] | boolean };
export type ParsedCommand = {
name: string;
positionalArguments: string[] | undefined[];
namedArguments: NamedArguments;
raw: string;
};
export type AccessObject = {
command: ParsedCommand;
cli: CLI;
dir: Dir;
env: Env;
js: (fn: (() => void) | string) => unknown | void | undefined;
};
export type Directory = { [key: string]: Directory | File };
export type File = string;
export type callback = (...args: unknown[]) => void;
type CommandFunction = (args: AccessObject) => string | void | Promise<string | void>;
type CommandDescription = string;
type NamedArgumentOptions = {
name: string;
choices: string[];
hasValue?: boolean;
}[];
type CommandImport = {
[key: string]: Command;
};
type ThemeName = 'papermod' | 'catppuccin-mocha';
type CustomTheme = {
brand: string;
h1: string;
h2: string;
h3: string;
h4: string;
h5: string;
h6: string;
content: string;
border: string;
separator: string;
background: string;
muted: string;
bold: string;
italic: string;
link: string;
visited: string;
linkHover: string;
success: string;
warning: string;
error: string;
selected: string;
};