-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.d.ts
43 lines (41 loc) · 1.05 KB
/
global.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
declare type Locale = 'zh' | 'en';
declare type DocumentConfigParam = {
name: string;
description: Record<Locale, string>;
} & Partial<
Record<
'type' | 'default',
| string /* any, string, boolean, ... */
| {
/** XXXOptions */
name: string;
code: {
/**string/replace/index.tzen */
filePath: string;
/** [1, 3] */
line: [start: number, end: number];
};
}
>
>;
declare interface DocumentConfig {
/**
* The output path for the documentation files, relative to the docs directory for different languages.
*
* en: docs/docs
*
* zh: docs/i18n/zh/docusaurus-plugin-content-docs/current
*/
outputFilePath: string;
/** see https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs */
setting: {
slug: string;
title: string;
};
description: Record<Locale, string>;
return?: { type?: string; description: Record<Locale, string> };
params: DocumentConfigParam[];
example: string;
sourceFilePath: string;
testFilePath: string;
}