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

x/aleph/types.d.ts>Aleph

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface Aleph
import { type Aleph } from "https://deno.land/x/aleph@v0.3.0-beta.12/types.d.ts";

An interface that aligns to the parts of the Aleph class.

Properties

readonly
mode: "development" | "production"
readonly
workingDir: string
readonly
config: RequiredConfig

Methods

addDist(path: string, content: Uint8Array): Promise<void>
addModule(
specifier: string,
sourceCode: string,
forceRefresh?: boolean,
): Promise<Module>
fetchModule(specifier: string): Promise<{ content: Uint8Array; contentType: string | null; }>
resolveImport(
module: Module,
importer: string,
bundleMode?: boolean,
timeStamp?: boolean,
): string
onResolve(test: RegExp, resolve: (specifier: string) => ResolveResult): void
onLoad(test: RegExp, load: (input: LoadInput) => LoadOutput | Promise<LoadOutput>): void
onTransform(test: "hmr" | "main" | RegExp, transform: (input: TransformInput) => TransformOutput | void | Promise<TransformOutput | void>): void
onRender(callback: (input: RenderOutput) => Promise<void> | void): void