( handler: RouteHandler<D, S> | RouteHandler<D, S>[] | null, )
| 98 | | HandlerByMethod<Data, State>; |
| 99 | |
| 100 | export function isHandlerByMethod<D, S>( |
| 101 | handler: RouteHandler<D, S> | RouteHandler<D, S>[] | null, |
| 102 | ): handler is HandlerByMethod<D, S> { |
| 103 | return handler !== null && !Array.isArray(handler) && |
| 104 | typeof handler === "object"; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * A handler function that is invoked when a request is made to a route. The |
no outgoing calls
no test coverage detected