forked from solidjs/solid-docs-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
41 lines (37 loc) · 902 Bytes
/
types.ts
File metadata and controls
41 lines (37 loc) · 902 Bytes
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
export interface Section {
slug: string;
title: string;
level: number;
children?: Section[];
}
export type ResourceMetadata = {
title: string,
description: string,
resource: string
}
export type DocPageLookup = {
subdir: string, //relative to a lang folder
outputName: string,
/*
if true, the markdown files will be output as a single file with outputName; if not, outputName
will be the name of an output directory containing each processed markdown file
*/
combine: boolean,
}
export type DocFile = {
sections: any[],
html: string
}
export type LessonLookup = {
lessonName: string,
internalName: string,
}
// type LessonCode = {
// files: Array<{ name?: string, type?: string, content?: string }>
// }
export type LessonFile = {
lesson?: any,
solved?: any,
markdown?: string,
}
export type StringKeyed = { [key: string]: StringKeyed | string[] };