UNPKG

@snyk/dep-graph

Version:

Snyk dependency graph library

11 lines (10 loc) 426 B
import { DepGraph, DepGraphData } from './types'; export declare const SUPPORTED_SCHEMA_RANGE = "^1.0.0"; export interface Options { shouldValidate?: boolean; } /** * Create a DepGraph instance from a JSON representation of a dep graph. This * is typically used after passing the graph over the wire as `DepGraphData`. */ export declare function createFromJSON(depGraphData: DepGraphData, options?: Options): DepGraph;