UNPKG

histoire

Version:

A fast story book powered by Vite

19 lines • 855 B
import type { ServerStory, ServerVariant, StoryFile, Variant } from '@histoire/shared'; interface MappableStoryFile extends Omit<StoryFile, 'story' | 'path'> { /** Tree path segments; absent for a story file that was never placed in the tree. */ path?: StoryFile['path']; story: ServerStory | StoryFile['story']; } type MappableVariant = ServerVariant | Variant; /** * Maps a serialized story file into the reactive preview shape expected by the * Histoire story runtime. */ export declare function mapStoryFile(file: MappableStoryFile, existingFile?: StoryFile): StoryFile; /** * Maps a story variant into the reactive preview shape expected by the * Histoire story runtime. */ export declare function mapStoryVariant(variant: MappableVariant, existingVariant?: Variant): Variant; export {}; //# sourceMappingURL=map-story-file.d.ts.map