UNPKG

histoire

Version:

A fast story book powered by Vite

15 lines • 972 B
import type { TestTarget } from '@histoire/cli/protocol/tests'; import type { CatalogSnapshot } from '../../catalog/types.js'; import type { AffectedChange, AffectedSelection } from './types.js'; /** * Intersects classified changes with an exact test scope against the current * completed catalog. A scope is never broadened: a story or variant that the * catalog no longer has stays an explicit `missing` state, and a variant scope * keeps its variant. Story IDs are compared as whole strings, never joined. * @param snapshot Current completed catalog, if any. * @param root Project root; maps changed files to catalog-relative story files. * @param scope Exact all/story/variant target. * @param changes Classified changes accumulated since the last run. */ export declare function selectAffected(snapshot: CatalogSnapshot | undefined, root: string, scope: TestTarget, changes: readonly AffectedChange[]): AffectedSelection; //# sourceMappingURL=select.d.ts.map