Skip to main content
Module

x/aleph/types.d.ts>Aleph

The Full-stack Framework in Deno.
Go to Latest
interface Aleph
import { type Aleph } from "https://deno.land/x/aleph@v0.3.0-beta.7/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): Promise<{ specifier: string; jsFile: string; }>
fetchModule(specifier: string): Promise<{ content: Uint8Array; contentType: string | null; }>
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: TransformOutput & { module: Module; }) =>
| void
| Promise<TransformOutput>
| Promise<void>
): void
onRender(callback: (input: RenderOutput) => Promise<void> | void): void