Skip to main content
Module

x/live/mod.ts>LoaderFunction

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
type alias LoaderFunction
import { type LoaderFunction } from "https://deno.land/x/live@1.59.5/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">>>