tsoa
This commit is contained in:
29
node_modules/@tsoa/runtime/dist/routeGeneration/templates/express/expressTemplateService.d.ts
generated
vendored
Normal file
29
node_modules/@tsoa/runtime/dist/routeGeneration/templates/express/expressTemplateService.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Request as ExRequest, Response as ExResponse, NextFunction as ExNext } from 'express';
|
||||
import { Controller } from '../../../interfaces/controller';
|
||||
import { TsoaRoute } from '../../tsoa-route';
|
||||
import { TemplateService } from '../templateService';
|
||||
type ExpressApiHandlerParameters = {
|
||||
methodName: string;
|
||||
controller: Controller | object;
|
||||
response: ExResponse;
|
||||
next: ExNext;
|
||||
validatedArgs: any[];
|
||||
successStatus?: number;
|
||||
};
|
||||
type ExpressValidationArgsParameters = {
|
||||
args: Record<string, TsoaRoute.ParameterSchema>;
|
||||
request: ExRequest;
|
||||
response: ExResponse;
|
||||
};
|
||||
type ExpressReturnHandlerParameters = {
|
||||
response: ExResponse;
|
||||
headers: any;
|
||||
statusCode?: number;
|
||||
data?: any;
|
||||
};
|
||||
export declare class ExpressTemplateService extends TemplateService<ExpressApiHandlerParameters, ExpressValidationArgsParameters, ExpressReturnHandlerParameters> {
|
||||
apiHandler(params: ExpressApiHandlerParameters): Promise<void>;
|
||||
getValidatedArgs(params: ExpressValidationArgsParameters): any[];
|
||||
protected returnHandler(params: ExpressReturnHandlerParameters): void;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user