UNPKG

archunit

Version:

ArchUnit TypeScript is an architecture testing library, to specify and assert architecture rules in your TypeScript app

14 lines (13 loc) 439 B
import { Edge } from '../extraction/graph'; export type ProjectedEdge = { sourceLabel: string; targetLabel: string; cumulatedEdges: Edge[]; }; export type ProjectedGraph = ProjectedEdge[]; export type MappedEdge = { sourceLabel: string; targetLabel: string; }; export type MapFunction = (edge: Edge) => MappedEdge | undefined; export declare const projectEdges: (graph: Edge[], mapper: MapFunction) => ProjectedEdge[];