Skip to main content
Module

x/live/mod.ts>LoaderFunction

The edge-native DXP: build and evolve an editable ultra-fast site powered by deno, fresh and tailwind. Optimized for "time-to-go-live".
Very Popular
Go to Latest
type alias LoaderFunction
import { type LoaderFunction } from "https://deno.land/x/live@0.10.0/mod.ts";

Type Parameters

optional
Props = any
optional
Data = any
optional
State = any
definition: (
req: Request,
ctx: HandlerContext<any, State>,
props: Props,
) => Promise<{ data: Data; } & Partial<Pick<Response, "status" | "headers">>>