-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
54 lines (46 loc) · 924 Bytes
/
types.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
interface DynamicObjects {
[key: string]: string | boolean;
}
interface apiTypeMock {
getCwd: () => string;
registerCommand: (
command: string,
object: DynamicObjects,
method: (_options: null, args: string[]) => Promise<void> | void
) => void;
}
interface FileOptions {
filepath: string;
content: string;
basepath?: string;
tagname?: string;
isTemplateFile?: boolean;
tagAttributes?: DynamicObjects;
}
interface FileObjects {
singleFile?: boolean;
files: FileOptions[];
}
interface CONFIG {
[key: string]: FileObjects;
}
interface setFileInfoResponse {
filePath: string;
fileName: string;
}
type DFunction<A> = (name: string) => A;
interface constructedFileOptions {
fileDir: string;
fileName: string;
filePath: string;
}
export {
apiTypeMock,
DynamicObjects,
FileOptions,
FileObjects,
CONFIG,
setFileInfoResponse,
DFunction,
constructedFileOptions
};