Skip to content

matchUpstreamStory

matchUpstreamStory(modulePath, stories): string | null

Defined in: packages/core/src/models/usage.ts:43

Pick the upstream story that documents the package module a story reaches. Exact stem match only (dist/Button.js ↔ Button.stories.tsx): resolves to the first story id of the single matching story file, or null when nothing matches or several different files share the stem (callers then fall back to the library).

string

readonly UpstreamStory[]

string | null