UNPKG

@roots/bud-server

Version:

Development server for @roots/bud

13 lines (12 loc) 483 B
import type { Bud } from '@roots/bud-framework'; import type { IncomingMessage, ServerResponse } from 'node:http'; declare module 'node:http' { interface IncomingMessage { cookies?: Record<string, any>; } interface ServerResponse { cookie: CallableFunction; } } declare const factory: (bud: Bud, url: Record<string, URL>) => (proxyRes: IncomingMessage, req: IncomingMessage, res: ServerResponse<IncomingMessage>) => Promise<void>; export { factory };