-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathtypes.d.ts
More file actions
60 lines (45 loc) · 1.88 KB
/
types.d.ts
File metadata and controls
60 lines (45 loc) · 1.88 KB
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
import type { SemVer } from 'semver';
import type { ReleaseEntry } from '../../parsers/types';
export type Configuration = {
global: GlobalConfiguration;
// A list of generators to be used in the API doc generation process;
// This is considered a "sorted" list of generators, in the sense that
// if the last entry of this list contains a generated value, we will return
// the value of the last generator in the list, if any.
target: Array<keyof AvailableGenerators>;
// The number of threads the process is allowed to use
threads: number;
// Number of items to process per worker thread
chunkSize: number;
// Whether or not the progress bar is enabled
progress: boolean;
} & {
[K in keyof AllGenerators]: GlobalConfiguration &
AllGenerators[K]['defaultConfiguration'];
};
export type GlobalConfiguration = {
// The repository
repository: string;
// The path to the input source files. This parameter accepts globs and can
// be a glob when passed to a generator.
input: string | string[];
// The path or glob patterns used to ignore files from the input source files.
ignore: string | string[];
// The path used to output generated files, this is to be considered
// the base path that any generator will use for generating files
// This parameter accepts globs but when passed to generators will contain
// the already resolved absolute path to the output folder
output: string;
// Whether or not the minify the output, in whatever form it may be
minify: boolean;
// Target Node.js version for the generation of the API docs
version: SemVer;
// A list of all major versions and their respective release information
changelog: Array<ReleaseEntry>;
// A list of all the titles of all the documentation files
index: Array<{ section: string; api: string }>;
// The base URL
baseURL: string | URL;
// Git ref (i.e. HEAD)
ref: string;
};