-
Notifications
You must be signed in to change notification settings - Fork 30.2k
/
index.d.ts
57 lines (55 loc) · 1.81 KB
/
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
54
55
56
57
export interface ParsedFile {
filename: string;
extension: string;
src: string;
blocks: Array<{ global: any; local: any }>;
}
export interface DocOptions {
excludeFilters?: string[] | undefined;
includeFilters?: string[] | undefined;
src?: string | undefined;
dest?: string | undefined;
template?: string | undefined;
templateSingleFile?: string | undefined;
config?: string | undefined;
apiprivate?: boolean | undefined;
verbose?: boolean | undefined;
single?: boolean | undefined;
debug?: boolean | undefined;
colorize?: boolean | undefined;
filters?: Record<string, string> | {
[keys: string]: {
postFilter: (parsedFiles: ParsedFile[], parsedFilenames: string[]) => void;
};
} | undefined;
languages?: Record<string, string> | {
[language: string]: {
docBlocksRegExp: RegExp;
inlineRegExp: RegExp;
};
} | undefined;
parsers?: Record<string, string> | {
parse: (content: string, source: string, messages: string) => {
name: string;
title: string;
description: string;
};
path: string;
getGroup?: (() => string) | undefined;
markdownFields?: string[] | undefined;
markdownRemovePTags?: string[] | undefined;
} | undefined;
workers?: Record<string, string> | {
[keys: string]: any;
} | undefined;
silent?: boolean | undefined;
dryRun?: boolean | undefined;
markdown?: boolean | undefined;
lineEnding?: string | undefined;
encoding?: string | undefined;
copyDefinitions?: boolean | undefined;
filterBy?: string | string[] | undefined;
}
export function createDoc(
options: DocOptions,
): boolean | { data: Array<Record<string, any>>; project: Record<string, any> };