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 Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
C | Record<string, unknown> |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
source | SourceExtension<C> | The source definition. |
Returns
Section titled “Returns”Record<string, unknown>
The manifest fields, plus the generated marker. sync is dropped.