[]previous and next page

MiddlewareModule

A module of server middleware that is loaded on demand.

A module of server middleware that is loaded on demand. load resolves to the module's middleware export (an array of Middleware); the handler checks it when it loads it.

Import#

ts
import type { MiddlewareModule } from "@shadow-js/dusk/server";

Signature#

ts
interface MiddlewareModule {
  load(): Promise<unknown>;
}

Members#

Name Type Description
load load(): Promise<unknown>