Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/deps.ts>PageProps

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
interface PageProps
import { type PageProps } from "https://deno.land/x/live@1.53.6/deps.ts";

Type Parameters

optional
T = any
optional
S = Record<string, unknown>

Properties

url: URL

The URL of the request that resulted in this page being rendered.

route: string

The route matcher (e.g. /blog/:id) that the request matched for this page to be rendered.

params: Record<string, string>

The parameters that were matched from the route.

For the /foo/:bar route with url /foo/123, params would be { bar: '123' }. For a route with no matchers, params would be {}. For a wildcard route, like /foo/:path* with url /foo/bar/baz, params would be { path: 'bar/baz' }.

data: T

Additional data passed into HandlerContext.render. Defaults to undefined.

state: S