MCPcopy Create free account
hub / github.com/FormidableLabs/react-live / isStory

Function isStory

packages/react-live/stories/load.ts:17–20  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

15type StoryModule = { title?: string; [name: string]: unknown };
16
17const isStory = (value: unknown): value is StoredStory =>
18 typeof value === "object" &&
19 value !== null &&
20 typeof (value as StoredStory).render === "function";
21
22/**
23 * Discover every story once, for both the dev harness and the smoke test --

Callers 1

loadStoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected