Skip to content

Search the guides, deployment pages, and API reference.

Loader

import type { Loader } from "@pitlane/content";
type Loader =
| ContentLoader
| LiveLoader<unknown>;

Either kind of loader.

A LiveLoader's own Data parameter is for whoever writes it; a collection accepts any of them, because what a loader hands back is unvalidated until parseData has seen it.