@tsed/common
Version:
A TypeScript Framework on top of Express
24 lines (23 loc) • 517 B
TypeScript
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;
}