tachijs
Version:
Highly testable dead simple web server written in Typescript
12 lines • 779 B
TypeScript
import express from 'express';
export declare type HandlerParamSelector<T> = (req: express.Request, res: express.Response, next: express.NextFunction, meta: HandlerParamMeta<T>) => T;
export interface HandlerParamMeta<T> {
index: number;
selector: HandlerParamSelector<T>;
paramType?: any;
}
export declare type HandlerParamMetaList = HandlerParamMeta<any>[];
export declare function getHandlerParamMetaList(controller: any, propertyKey: string): HandlerParamMetaList;
export declare function setHandlerParamMetaList(controller: any, propertyKey: string, meta: HandlerParamMetaList): void;
export declare function handlerParam<T>(selector: HandlerParamSelector<T>): (target: any, propertyKey: string, index: number) => void;
//# sourceMappingURL=handlerParam.d.ts.map