UNPKG

@enspirit/emb

Version:

A replacement for our Makefile-for-monorepos

16 lines (15 loc) 1.05 kB
import graphlib from 'graphlib'; import { EMBCollection } from './EMBCollection.js'; import { AmbiguityPolicy, DepList } from './types.js'; export declare function resolveRefSet<T extends Partial<Record<DPK, DepList>> & Record<IDK, string> & { name: string; }, IDK extends keyof T, DPK extends keyof T>(col: EMBCollection<T, IDK, DPK>, ref: string, policy: AmbiguityPolicy): string[]; export declare function collectPredecessorClosure(g: graphlib.Graph, seeds: Iterable<string>): Set<string>; export declare function buildGraph<T extends Partial<Record<DPK, DepList>> & Record<IDK, string> & { name: string; }, IDK extends keyof T, DPK extends keyof T>(col: EMBCollection<T, IDK, DPK>, policy: AmbiguityPolicy): graphlib.Graph; export declare function findRunOrder<T extends Partial<Record<DPK, DepList>> & Record<IDK, string> & { name: string; }, IDK extends keyof T, DPK extends keyof T>(selection: readonly string[], collection: EMBCollection<T, IDK, DPK>, { onAmbiguous }?: { onAmbiguous?: AmbiguityPolicy | undefined; }): T[];