deno.land / x / fresh@1.1.1 / tests / fixture / options.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
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;
fresh

Version Info

Tagged at
a year ago