fix(server): make AppProps generic (#1449)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user