bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
16 lines (15 loc) • 873 B
TypeScript
import { Graph as GraphLib } from 'graphlib';
import Consumer from '../../consumer/consumer';
import Component from '../../consumer/component';
import { ModelComponent, Version } from '../models';
import { BitId } from '../../bit-id';
import Scope from '../scope';
export default class Graph extends GraphLib {
getSuccessorsByEdgeTypeRecursively(bitId: string, successorsList?: string[], visited?: {
[key: string]: boolean;
}): string[];
static buildGraphFromScope(scope: Scope): Promise<Graph>;
static _addDependenciesToGraph(id: BitId, graph: Graph, component: Version | Component): void;
static addScopeComponentsAsNodes(allModelComponents: ModelComponent[], graph: Graph, workspaceComponents?: Component[], onlyLatest?: boolean): Promise<void>;
static buildGraphFromWorkspace(consumer: Consumer, onlyLatest?: boolean): Promise<Graph>;
}