fix(server): make AppProps generic (#1449)

This commit is contained in:
Reed von Redwitz
2023-08-04 12:05:15 +02:00
committed by GitHub
parent 76f0f4a84a
commit 630f0a2322
4 changed files with 15 additions and 6 deletions
@@ -1,8 +1,9 @@
import { MiddlewareHandlerContext } from "$fresh/server.ts";
import { TestState } from "../_app.tsx";
export async function handler(
_req: Request,
ctx: MiddlewareHandlerContext,
ctx: MiddlewareHandlerContext<TestState>,
) {
ctx.state.stateInProps = "look, i am set from middleware";
const resp = await ctx.next();