histoire
Version:
A fast story book powered by Vite
13 lines • 849 B
TypeScript
import type { HistoireCatalog } from '@histoire/protocol';
import type { HistoireConfig, ServerStoryFile } from '@histoire/shared';
import type { CatalogDiagnostic, CatalogStory } from './types.js';
/**
* Projects allowlisted metadata into portable immutable browser catalog.
* @param stories Accepted stories.
* @param diagnostics Already bounded diagnostics.
* @param files Registered story files carrying collected extras (layout, icons, `meta`).
* @param config Project config.
* @param maxDiagnostics Count cap `diagnostics` were bounded with; projection warnings share it.
*/
export declare function projectCatalog(stories: readonly CatalogStory[], diagnostics: readonly CatalogDiagnostic[], files?: readonly ServerStoryFile[], config?: HistoireConfig, maxDiagnostics?: number): HistoireCatalog;
//# sourceMappingURL=projection.d.ts.map