Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_graph/lib/types.d.ts>ModuleJson

The module graph logic for Deno CLI
Go to Latest
interface ModuleJson
implements CacheInfo
import { type ModuleJson } from "https://deno.land/x/deno_graph@0.32.0/lib/types.d.ts";

Properties

specifier: string

The string URL of the module.

optional
error: string

Any error encountered when attempting to load the module.

optional
kind: ModuleKind

The module kind that was determined when the module was resolved. This is used by loaders to indicate how a module needs to be loaded at runtime.

optional
dependencies: DependencyJson[]

An array of dependencies that were identified in the module.

optional
typesDependency: TypesDependencyJson

If the module had a types dependency, the information about that dependency.

optional
mediaType: MediaType

The resolved media type of the module, which determines how Deno will handle the module.

optional
size: number

The size of the source content of the module in bytes.

optional
checksum: string

If available, the calculated checksum of the module which can be used for validating the integrity of the module.

optional
sourceMap: RawSourceMap

If available, the upstream source map from the module. If present, sourceMapUrl will be undefined.

optional
sourceMapUrl: SourceMapUrl

If available, the upstream source map URL from the module. If present, sourceMap will be undefined.