@buntal/core - Http

AtomicHandler

Type definition for request handler functions in Buntal applications.

Source

View source on GitHub

Type Definition

type AtomicHandler<P = Record<string, string>, T = unknown> = (
  req: Req<P, T>,
  res: Res
) => Response | Promise<Response> | void | Promise<void>

Parameters

ParameterTypeRequiredDefaultDescription
PRecord<string, string>Record<string, string>Type for route parameters
TunknownunknownType for request context data

Last modified: 2025-06-10

Content-Length: 0