forked from AlenToma/Epub-Constructor
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.d.ts
More file actions
39 lines (36 loc) · 777 Bytes
/
types.d.ts
File metadata and controls
39 lines (36 loc) · 777 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
export interface Parameter {
name: string;
value: string;
}
export interface EpubChapter {
fileName?: string; // use title when is not set
title: string;
htmlBody: string;
parameter?: Parameter[];
}
export interface InternalEpubChapter {
fileName: string;
title: string;
htmlBody: string;
parameter?: Parameter[];
}
export interface File {
path: string;
content: string;
isImage?: boolean;
}
export interface EpubSettings {
fileName?: string; // use title when is not set
title: string;
language?: string; // Default en
bookId?: string;
description?: string;
source?: string;
author?: string;
chapters?: EpubChapter[];
stylesheet?: string | object;
parameter?: Parameter[];
rights?: string;
cover?: string;
js?: string;
}