Skip to main content
Module

x/live/mod.ts>LoaderFunction

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Very Popular
Go to Latest
type alias LoaderFunction
import { type LoaderFunction } from "https://deno.land/x/live@1.43.0/mod.ts";

Type Parameters

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