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).
Parameters
Section titled “Parameters”modulePath
Section titled “modulePath”string
stories
Section titled “stories”readonly UpstreamStory[]
Returns
Section titled “Returns”string | null