histoire
Version:
A fast story book powered by Vite
13 lines • 880 B
TypeScript
import type { CatalogPage } from '@histoire/shared';
import type { Context } from '../../context.js';
/** Actual installed versions and public project chips. */
export interface ProjectSignals {
/** Browser-safe framework and dependency chips. */ project: CatalogPage['project'];
/** Actual installed package versions, never dependency ranges. */ versions: Record<string, string>;
/** Declared dependency names used by recommendation rules. */ dependencies: string[];
}
/** Object identity bounds captured evidence to a configuration generation. */
export type ProjectContext = Pick<Context, 'root'>;
/** Capture project evidence once; resolve only peers currently consulted and the Vite chip. */
export declare function detectProjectSignals(context: ProjectContext | string, requires?: Iterable<string>): Promise<ProjectSignals>;
//# sourceMappingURL=signals.d.ts.map