@types/dependency-solver
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/dependency-solver

Summary

This package contains type definitions for dependency-solver (https://github.com/haavistu/dependency-solver#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dependency-solver.

index.d.ts

/**
 * Solve dependency graph
 *
 * @param g dependency graph
 */
export function solve(g: { [key: string]: string[] }): string[];

/**
 * Add missing keys for dependencies of other nodes
 *
 * @param g dependency graph
 */
export function addMissingKeys(g: { [key: string]: string[] }): { [key: string]: string[] };

/**
 * Get numbers of dependants for each node
 *
 * @param g dependency graph
 */
export function getEdges(g: { [key: string]: string[] }): { [key: string]: number };

/**
 * Get relations between dependencies, eg. the lines in a tree diagramm
 *
 * @param g dependency graph
 */
export function getInDegree(g: { [key: string]: string[] }): Array<[string, string]>;

export { getEdges as getDependedBy, getInDegree as getDependencyLines };

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/dependency-solver

Weekly Downloads

8

Version

1.0.3

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • types