histoire
Version:
A fast story book powered by Vite
9 lines • 449 B
TypeScript
import type { StoryFile } from '@histoire/shared';
/**
* Resolves one catalog variant or preserves the collection mount's error.
* @param file The mapped story file with current catalog variants.
* @param variantId The requested variant identity.
* @returns The matching mapped variant.
*/
export declare function getStoryVariant(file: StoryFile, variantId: string): StoryFile['story']['variants'][number];
//# sourceMappingURL=variant.d.ts.map