feat: add helpers to make Fresh less TypeScripty (#1627)

This commit is contained in:
Marvin Hagemeister
2023-08-14 22:45:13 +02:00
committed by GitHub
parent 6436a43dce
commit 726740ed39
11 changed files with 157 additions and 13 deletions
@@ -0,0 +1,11 @@
import { defineApp } from "$fresh/server.ts";
import { State } from "../other/state.ts";
export default defineApp<State>((req, ctx) => {
ctx.state.something = "foo";
return (
<div class="app">
<ctx.Component />
</div>
);
});