(handler: unknown)
| 5 | // Arity alone is enough here (unlike `wrapSubAppMiddleware` in patchRoute.ts, which also needs position) |
| 6 | // We only want the path, and inline middleware shares its handler's path. |
| 7 | function isRouteHandler(handler: unknown): boolean { |
| 8 | return typeof handler === 'function' && !isMiddleware(handler); |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * Resolves the route path of the matched handler for the transaction name. |
no test coverage detected