histoire
Version:
A fast story book powered by Vite
16 lines • 697 B
TypeScript
import type { ServerStoryFile } from '@histoire/shared';
import type { ViteDevServer } from 'vite';
import type { Context } from '../context.js';
import type { StoryCollectionOutcome } from './outcome.js';
export interface UseCollectStoriesOptions {
server: ViteDevServer;
mainServer?: ViteDevServer;
throws?: boolean;
}
/** Owns one project's collection workers, transforms, ports and invalidations. */
export declare function useCollectStories(options: UseCollectStoriesOptions, ctx: Context): {
clearCache: () => void;
executeStoryFile: (storyFile: ServerStoryFile) => Promise<StoryCollectionOutcome>;
destroy: () => Promise<void>;
};
//# sourceMappingURL=index.d.ts.map