(f: BaseFormat, mode: HtmlMode = "normal")
| 14 | export type HtmlMode = "normal" | "reader" | "prune"; |
| 15 | |
| 16 | export function buildBaseFormat(f: BaseFormat, mode: HtmlMode = "normal"): FormatConfig { |
| 17 | switch (f) { |
| 18 | case "markdown": |
| 19 | return { type: "markdown", mode }; |
| 20 | case "html": |
| 21 | return { type: "html", mode }; |
| 22 | case "screenshot": |
| 23 | return { type: "screenshot" }; |
| 24 | case "branding": |
| 25 | return { type: "branding" }; |
| 26 | case "links": |
| 27 | return { type: "links" }; |
| 28 | case "images": |
| 29 | return { type: "images" }; |
| 30 | case "summary": |
| 31 | return { type: "summary" }; |
| 32 | } |
| 33 | } |
no outgoing calls
no test coverage detected