0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/helper/factory/index.ts
Yusuke Wada 86037a54eb
feat(helper/factory): remove @experimental from createMiddleware() (#1653)
* feat(helper/factory): remove `@experimental` from `createMiddleware()`

* denoify
2023-11-08 12:19:15 +09:00

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