(input: string)
| 11 | * we can hand it to JSON.stringify safely. |
| 12 | */ |
| 13 | const precompileToString = (input: string): string => { |
| 14 | const result: unknown = Handlebars.precompile(input); |
| 15 | |
| 16 | if (typeof result !== "string") { |
| 17 | throw new Error("Handlebars.precompile did not return a string"); |
| 18 | } |
| 19 | |
| 20 | return result; |
| 21 | }; |
| 22 | |
| 23 | const COMPONENTS_DIR = path.join(__dirname, "components"); |
| 24 | const TEMPLATES_DIR = path.join(__dirname, "templates"); |
no outgoing calls
no test coverage detected