import { type DependencyUpdate } from "https://deno.land/x/molt@0.17.2/lib/update.ts";
Representation of an update to a dependency.
Type Parameters
optional
T extends SourceType = SourceTypeProperties
from: T extends "lockfile" ? Dependency | undefined : Dependency
Properties of the dependency being updated. Undefined if the dependency is added.
code: { specifier: string; span: T extends "module" ? NonNullable<DependencyJson["code"]>["span"] : undefined; }
The code of the dependency. Note that type
in the DependencyJSON
is merged into code
here for convenience.
map: T extends "import_map" ? { source: string; } & ImportMapResolveResult<true> : undefined
Information about the import map used to resolve the dependency.