UNPKG

5.4 kBTypeScriptView Raw
1/**
2 * Describes the options declared by the plugin.
3 */
4export interface PluginOptions {
5 /**
6 * Custom anchor prefix when anchoring to in-page symbols.
7 */
8 anchorPrefix: string;
9 /**
10 * Specifies comment block tags that should preserve their position.
11 */
12 blockTagsPreserveOrder: string[];
13 /**
14 * Sets the format of property groups for classes.
15 */
16 classPropertiesFormat: 'list' | 'table' | 'htmlTable';
17 /**
18 * The file name of the entry page.
19 */
20 entryFileName: string;
21 /**
22 * The name of a module that should act as the root page for the documentation.
23 */
24 entryModule: string;
25 /**
26 * Sets the format of enumeration members.
27 */
28 enumMembersFormat: 'list' | 'table' | 'htmlTable';
29 /**
30 * @deprecated This option has been renamed hideGroupHeadings to better reflect its purpose.
31 */
32 excludeGroups: boolean;
33 /**
34 * Exclude writing @ scope directories in paths.
35 */
36 excludeScopesInPaths: boolean;
37 /**
38 * Expand objects inside declarations.
39 */
40 expandObjects: boolean;
41 /**
42 * Expand parameters in signature parentheses to display type information.
43 */
44 expandParameters: boolean;
45 /**
46 * Specify the file extension for generated output files.
47 */
48 fileExtension: string;
49 /**
50 * Flatten output files to a single directory.
51 */
52 flattenOutputFiles: boolean;
53 /**
54 * Apply additional output formatting with Prettier.
55 */
56 formatWithPrettier: boolean;
57 /**
58 * Do not print breadcrumbs.
59 */
60 hideBreadcrumbs: boolean;
61 /**
62 * Excludes grouping by kind so all members are rendered at the same level.
63 */
64 hideGroupHeadings: boolean;
65 /**
66 * Do not print page header.
67 */
68 hidePageHeader: boolean;
69 /**
70 * Do not print page title.
71 */
72 hidePageTitle: boolean;
73 /**
74 * Sets the format of index items.
75 */
76 indexFormat: 'list' | 'table' | 'htmlTable';
77 /**
78 * Sets the format of property groups for interfaces.
79 */
80 interfacePropertiesFormat: 'list' | 'table' | 'htmlTable';
81 /**
82 * Determines which members are exported to their own file.
83 */
84 membersWithOwnFile: ('Enum' | 'Variable' | 'Function' | 'Class' | 'Interface' | 'TypeAlias')[];
85 /**
86 * Appends the documentation index page to the readme page.
87 */
88 mergeReadme: boolean;
89 /**
90 * The file name of the separate modules / index page.
91 */
92 modulesFileName: string;
93 /**
94 * @deprecated This option has been deprecated in favour of TypeDoc `navigation` option.
95 */
96 navigationModel: {
97 excludeGroups: boolean;
98 excludeCategories: boolean;
99 excludeFolders: boolean;
100 };
101 /**
102 * Determines how output files are generated.
103 */
104 outputFileStrategy: 'members' | 'modules';
105 /**
106 * Change specific text placeholders in the template.
107 */
108 pageTitleTemplates: {
109 index: string | ((name: {
110 projectName: string;
111 version: string;
112 }) => string);
113 member: string | ((name: {
114 name: string;
115 kind: string;
116 group: string;
117 }) => string);
118 module: string | ((name: {
119 name: string;
120 kind: string;
121 }) => string);
122 };
123 /**
124 * Sets the format of parameter and type parameter groups.
125 */
126 parametersFormat: 'list' | 'table' | 'htmlTable';
127 /**
128 * Preserve anchor casing when generating link to symbols.
129 */
130 preserveAnchorCasing: boolean;
131 /**
132 * Specify a custom Prettier configuration file location.
133 */
134 prettierConfigFile: string;
135 /**
136 * Sets the format of property groups for interfaces and classes.
137 */
138 propertiesFormat: 'list' | 'table' | 'htmlTable';
139 /**
140 * Sets the format of style for property members for interfaces and classes.
141 */
142 propertyMembersFormat: 'list' | 'table' | 'htmlTable';
143 /**
144 * Specify the base path for all urls.
145 */
146 publicPath: string;
147 /**
148 * Sanitize HTML and JSX inside JsDoc comments.
149 */
150 sanitizeComments: boolean;
151 /**
152 * Control how table columns are configured and displayed.
153 */
154 tableColumnSettings: {
155 hideDefaults: boolean;
156 hideInherited: boolean;
157 hideModifiers: boolean;
158 hideOverrides: boolean;
159 hideSources: boolean;
160 hideValues: boolean;
161 leftAlignHeaders: boolean;
162 };
163 /**
164 * Change specific text placeholders in the template.
165 */
166 textContentMappings: {
167 'header.title': string;
168 'breadcrumbs.home': string;
169 'title.indexPage': string;
170 'title.memberPage': string;
171 'title.modulePage': string;
172 };
173 /**
174 * Sets the format of style for type declaration members.
175 */
176 typeDeclarationFormat: 'list' | 'table' | 'htmlTable';
177 /**
178 * Set the visibility level for type declaration documentation.
179 */
180 typeDeclarationVisibility: 'compact' | 'verbose';
181 /**
182 * Wraps signatures and declarations in code blocks.
183 */
184 useCodeBlocks: boolean;
185 /**
186 * Add HTML named anchors to headings and table rows.
187 */
188 useHTMLAnchors: boolean;
189 /**
190 * Use HTML encoded entities for angle brackets.
191 */
192 useHTMLEncodedBrackets: boolean;
193}