Skip to content

Commit 3083c8f

Browse files
committed
chore(core): added types on the methods abstract in http-adapter
1 parent 0a4a040 commit 3083c8f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

packages/core/adapters/http-adapter.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,18 @@ export abstract class AbstractHttpAdapter<
100100
abstract initHttpServer(options: NestApplicationOptions);
101101
abstract useStaticAssets(...args: any[]);
102102
abstract setViewEngine(engine: string);
103-
abstract getRequestHostname(request);
104-
abstract getRequestMethod(request);
105-
abstract getRequestUrl(request);
106-
abstract status(response, statusCode: number);
107-
abstract reply(response, body: any, statusCode?: number);
108-
abstract end(response, message?: string);
109-
abstract render(response, view: string, options: any);
110-
abstract redirect(response, statusCode: number, url: string);
103+
abstract getRequestHostname(request: any);
104+
abstract getRequestMethod(request: any);
105+
abstract getRequestUrl(request: any);
106+
abstract status(response: any, statusCode: number);
107+
abstract reply(response: any, body: any, statusCode?: number);
108+
abstract end(response: any, message?: string);
109+
abstract render(response: any, view: string, options: any);
110+
abstract redirect(response: any, statusCode: number, url: string);
111111
abstract setErrorHandler(handler: Function, prefix?: string);
112112
abstract setNotFoundHandler(handler: Function, prefix?: string);
113-
abstract isHeadersSent(response);
114-
abstract setHeader(response, name: string, value: string);
113+
abstract isHeadersSent(response: any);
114+
abstract setHeader(response: any, name: string, value: string);
115115
abstract registerParserMiddleware(prefix?: string, rawBody?: boolean);
116116
abstract enableCors(
117117
options: CorsOptions | CorsOptionsDelegate<TRequest>,

0 commit comments

Comments
 (0)