UNPKG

@teambit/harmony

Version:
32 lines (31 loc) 837 B
import { ExtensionManifest } from '../extension'; import { Extension } from '../extension'; import { DependencyGraphOptions, Edge } from './extension-graph'; /** * build vertices and edges from the given extension */ export declare function fromExtension(extension: ExtensionManifest, options?: DependencyGraphOptions): { vertices: { id: string; node: Extension; }[]; edges: { sourceId: string; targetId: string; edge: Edge; }[]; }; /** * build vertices and edges from the given list of extensions */ export declare function fromExtensions(extensions: ExtensionManifest[], options?: DependencyGraphOptions): { vertices: { id: string; node: Extension; }[]; edges: { sourceId: string; targetId: string; edge: Edge; }[]; };