1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export type HtmlContent = TagDescriptor | string;
export type HtmlContents = Array<HtmlContent> | HtmlContent;
export interface PageDescriptor {
title: string;
meta: string[];
links: string[];
scripts: string[];
body: Array<HtmlContent>;
}
export interface TagDescriptor {
tag: string;
attributes: { [name: string]: string };
classes: string[];
content: Array<HtmlContent>;
mustSelfClose: boolean;
}