deno.land / x / hono@v4.2.5 / utils / handler.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { COMPOSED_HANDLER } from '../hono-base.ts'
export const isMiddleware = (handler: Function) => handler.length > 1export const findTargetHandler = (handler: Function): Function => { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (handler as any)[COMPOSED_HANDLER] ? // eslint-disable-next-line @typescript-eslint/no-explicit-any findTargetHandler((handler as any)[COMPOSED_HANDLER]) : handler}
hono

Version Info

Tagged at
a month ago