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

x/deco/mod.ts>LoaderFunction

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
type alias LoaderFunction
import { type LoaderFunction } from "https://deno.land/x/deco@1.75.1/mod.ts";

Type Parameters

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

Type Parameters

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