9 lines
232 B
TypeScript
9 lines
232 B
TypeScript
import { RenderContext, RenderFn } from "../../../server.ts";
|
|
|
|
export function render(_ctx: RenderContext, render: RenderFn) {
|
|
const body = render();
|
|
if (typeof body !== "string") {
|
|
throw new Error("body is missing");
|
|
}
|
|
}
|