Module

x/deno_graph/mod.ts>ModuleJson

The module graph logic for Deno CLI
Latest
interface ModuleJson
implements CacheInfo
import { type ModuleJson } from "https://dotland.deno.dev/x/deno_graph@0.69.6/mod.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.

import ModuleJson
import { ModuleJson } from "https://dotland.deno.dev/x/deno_graph@0.69.6/mod.ts";