UNPKG

@tsed/common

Version:
24 lines (23 loc) 517 B
import { PathParamsType } from "../../mvc"; /** * @ignore */ export interface PlatformRouteOptions { method: string; path: PathParamsType; handlers: any[]; isFinal?: boolean; } /** * @ignore */ export declare type PlatformRouteWithoutHandlers = Partial<Omit<PlatformRouteOptions, "handlers">>; /** * @ignore */ export interface PlatformRouterMethods<T = any> { addRoute(routeOptions: PlatformRouteOptions): this; use(...handlers: any[]): this; callback(): any; getRouter(): T; }