mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
86037a54eb
* feat(helper/factory): remove `@experimental` from `createMiddleware()` * denoify
7 lines
290 B
TypeScript
7 lines
290 B
TypeScript
import type { Env, Input, MiddlewareHandler } from '../../types.ts'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export const createMiddleware = <E extends Env = any, P extends string = any, I extends Input = {}>(
|
|
middleware: MiddlewareHandler<E, P, I>
|
|
) => middleware
|