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

x/deno_graph/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.58.0/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.