forked from joshuatz/git-date-extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
58 lines (53 loc) · 1.4 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
type GitCommitHook = "pre" | "post" | "none";
interface StampObject {
// the stamp of when the file was created
"created"?: number | boolean,
// the stamp of when the file was modified
"modified"?: number | boolean
}
interface StampCache {
[index:string]: StampObject
}
interface InputOptions {
// Whether or not the timestamps should be saved to file
outputToFile?: boolean,
// the filename to save the timestamps to
outputFileName?: string,
// If the output file should automatically be check-in with git add
outputFileGitAdd?: boolean,
// Filenames to process
files?: string[] | string,
// Only update for files in these directories
onlyIn?: string[] | string,
// Block certain files from being tracked
blockFiles?: string[] | string,
// Exception list of files that will override any blocks
allowFiles?: string[] | string,
// What triggered the execution
gitCommitHook?: GitCommitHook,
// Project root
projectRootPath?: string,
// Debug
debug?: boolean
}
interface FinalizedOptions {
outputToFile: boolean,
outputFileName?: string,
outputFileGitAdd?: boolean,
files: string[],
onlyIn?: string[],
blockFiles?: string[],
allowFiles: string[],
gitCommitHook: GitCommitHook,
projectRootPath: string,
projectRootPathTrailingSlash: string,
debug: boolean
}
interface DirListing {
[index: string]: string | DirListing;
}
declare namespace NodeJS {
interface Global {
calledViaCLI?: boolean;
}
}