AtomicHandler
Type definition for request handler functions in Buntal applications.
Source
Type Definition
type AtomicHandler<P = Record<string, string>, T = unknown> = (
  req: Req<P, T>,
  res: Res
) => Response | Promise<Response> | void | Promise<void>Parameters
| Parameter | Type | Required | Default | Description | 
|---|---|---|---|---|
P | Record<string, string> | ❌ | Record<string, string> | Type for route parameters | 
T | unknown | ❌ | unknown | Type for request context data | 
Last modified: 2025-06-10