lit-ui-router-ssr / FileWriter
Type Alias: FileWriter
ts
type FileWriter = (file, body) => void | Promise<void>;Defined in: packages/lit-ui-router-ssr/src/prerender.ts:54
Where prerender writes. Supply one to emit into memory or a virtual fs. file arrives with outDir already joined on, so a hook writes it verbatim.
Parameters
| Parameter | Type |
|---|---|
file | string |
body | string |
Returns
void | Promise<void>