Skip to main content
Module

x/aleph/types.d.ts

The Full-stack Framework in Deno.
Very Popular
Go to Latest
File
type CTX = import("./server/types.ts").Context;// deno-lint-ignore no-empty-interfacedeclare interface Context extends CTX {}
/** The Middleare for Aleph server. */declare interface Middleware { /** The middleware name. */ readonly name?: string; /** The middleware fetch method. */ fetch(request: Request, context: Context): Promise<Response> | Response;}
declare interface ImportMeta { /** Aleph.js HMR `hot` API. */ readonly hot?: { readonly data: Record<string, unknown>; accept<T = Record<string, unknown>>(callback?: (module: T) => void): void; decline(): void; dispose: (callback: (data: Record<string, unknown>) => void) => void; invalidate(): void; watchFile(filename: string, callback: () => void): () => void; };}