Skip to content

toSourceManifest

function toSourceManifest<C>(source: SourceExtension<C>): Record<string, unknown>;

The manifest half of a source, as the JSON a catalog commits.

Committed rather than computed on demand because the readers cannot execute the source: Trove’s catalog build and the Mac app both read manifest.json off disk, and neither runs TypeScript to do it. generated marks the file as an artifact so nobody edits it by hand and loses the change on the next build.

Type ParameterDefault type
CRecord<string, unknown>
ParameterTypeDescription
sourceSourceExtension<C>The source definition.

Record<string, unknown>

The manifest fields, plus the generated marker. sync is dropped.