Files
sweet/tests/fixture_preact_rts_v5/options.ts
T

12 lines
274 B
TypeScript

import { FreshOptions } from "$fresh/server.ts";
export default {
async render(_ctx, render) {
await new Promise<void>((r) => r());
const body = render();
if (typeof body !== "string") {
throw new Error("body is missing");
}
},
} as FreshOptions;