Module

x/aleph/server/graph.ts>DependencyGraph

The Full-stack Framework in Deno.
Go to Latest
class DependencyGraph
import { DependencyGraph } from "https://deno.land/x/aleph@1.0.0-beta.1/server/graph.ts";

Constructors

new
DependencyGraph(modules?: Module[], globalVersion?: number)

Properties

readonly
globalVersion: number
readonly
modules: Module[]

Methods

get(specifier: string): Module | undefined
lookup(specifier: string, callback: (specifier: string) => void | false)
mark(specifier: string, props: Partial<Module>): Module
shallowWalk(specifier: string | string[], callback: (mod: Module) => void)
unmark(specifier: string)
update(specifier: string)
walk(specifier: string, callback: (mod: Module, importer?: Module) => void)