Interface IRouterMatcher<T, Method>

interface IRouterMatcher<T, Method> {
    <Route, P, ResBody, ReqBody, ReqQuery, LocalsObj>(path, ...handlers): T;
    <Path, P, ResBody, ReqBody, ReqQuery, LocalsObj>(path, ...handlers): T;
    <P, ResBody, ReqBody, ReqQuery, LocalsObj>(path, ...handlers): T;
    <P, ResBody, ReqBody, ReqQuery, LocalsObj>(path, ...handlers): T;
    (path, subApplication): T;
}

Type Parameters

  • T
  • Method extends "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head" = any