From 1016e7f9a13a80629d0443f313fde4e475e50829 Mon Sep 17 00:00:00 2001 From: Josh Simmons <6600962+jcpsimmons@users.noreply.github.com> Date: Thu, 28 Dec 2023 15:24:38 -0700 Subject: [PATCH] docs: fix deprecated type usage in example code (#2203) Fixes deprecated example in docs. image --- docs/latest/concepts/routes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/latest/concepts/routes.md b/docs/latest/concepts/routes.md index 7c31b87f..c5f50cea 100644 --- a/docs/latest/concepts/routes.md +++ b/docs/latest/concepts/routes.md @@ -26,10 +26,10 @@ the handler's `render` function. Let's look at a basic route that returns a plain text string: ```tsx routes/plain.tsx -import { HandlerContext, Handlers } from "$fresh/server.ts"; +import { FreshContext, Handlers } from "$fresh/server.ts"; export const handler: Handlers = { - GET(_req: Request, _ctx: HandlerContext) { + GET(_req: Request, _ctx: FreshContext) { return new Response("Hello World"); }, };