1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- declare namespace render {
- type Options = {
-
- singleTags: string[] | RegExp[];
-
- closingSingleTag: "tag" | "slash";
-
- quoteAllAttributes: boolean;
- };
-
- type Tree = Node[];
- type Node = NodeText | NodeTag;
- type NodeText = string;
- type NodeTag = {
- tag: string;
- attrs?: Attributes;
- content?: Node[];
- };
- type Attributes = Record<string, string>;
- }
- declare function render(
- tree: render.Tree,
- options?: Partial<render.Options>
- ): string;
- export = render;
|