Skip to content

Search the guides, deployment pages, and API reference.

Content

import type { Content } from "@pitlane/content";
type Content<T> = { [K in keyof T]: Collection<K & string, InferSchema<T[K]["schema"]>> };

The object createContent returns: one Collection per key of the definitions its callback returned, named after that key and typed by the output of that collection's schema.

Type Parameters

T

T extends Record<string, CollectionDefinition>