Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_graph/mod.ts>ModuleGraph#lock

The module graph logic for Deno CLI
Go to Latest
method ModuleGraph.prototype.lock
Re-export
import { ModuleGraph } from "https://deno.land/x/deno_graph@0.37.1/mod.ts";

Determine if the graph sources are valid by calling the passed check() function. If any of the modules in the graph fail the check, then an error is thrown.