UNPKG

keiro

Version:

A filesystem routing middleware

11 lines 529 B
import { type FileSystemRouterOptions } from "../fileSystemRouter"; import type http from "node:http"; import type { MaybePromise } from "../types"; type NodeRequestHandler = (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => MaybePromise<void>; /** * Creates a file system router node middleware. * @param options The file system router options. */ export declare function fileSystemRouter(options?: FileSystemRouterOptions): NodeRequestHandler; export {}; //# sourceMappingURL=node.d.ts.map