Skip to content

componentPresence

componentPresence(history, latestBuildId, latest, lastTitle): ComponentPresence

Defined in: packages/core/src/models/component.ts:74

Classify a component against the latest build. history is the component’s past builds (newest first); latest holds the latest build’s snapshots of every file, used to find a moved file by its last-seen title.

readonly ComponentHistoryRow[]

string | null

readonly Pick<Snapshot, "storyTitle" | "storyImportPath">[]

string | null

ComponentPresence