UNPKG

@quiltjs/quilt

Version:

Lightweight, type-safe handler and router abstraction for Node HTTP servers.

13 lines 376 B
/** * Creates a "terminal" handler in a dependency graph. * * Works for both "middleware-like" handlers (that produce values for others) * and "terminal" handlers at the edge of the system. */ export function createHandler({ execute, dependencies, }) { return { dependencies: (dependencies || {}), execute, }; } //# sourceMappingURL=Handler.js.map