UNPKG

rajt

Version:

A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.

12 lines (10 loc) 354 B
import type { Context, MiddlewareHandler, Next } from 'hono' export type MiddlewareType = MiddlewareHandler | Middleware | (new () => Middleware) export default class Middleware { static factory?: Function static opts?: object | any[] static path: string = '*' static async handle(c: Context, next: Next): Promise<void> { await next() } }