Skip to content

Search the guides, deployment pages, and API reference.

ContentLoader

import type { ContentLoader } from "@pitlane/content";

A loader that resolves a whole collection by filling a store.

Its shape is the claim that one execution produces the complete answer, which is what lets contentLayer() run it during the build and inline the result.

Properties

name

name: string;

Methods

load()

load(context): void | Promise<void>;

Parameters

context

LoaderContext

Returns

void | Promise<void>


watchedPaths()?

optional watchedPaths(): string[];

Returns

string[]