Skip to content

Commit

Permalink
Merge pull request #10182 from Tony133/chore/update-abstract-method-o…
Browse files Browse the repository at this point in the history
…n-http-adpater

chore(core): added types on the  methods abstract in http-adapter
  • Loading branch information
kamilmysliwiec committed Aug 29, 2022
2 parents 6389a74 + 3083c8f commit de6169e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/core/adapters/http-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ export abstract class AbstractHttpAdapter<
abstract initHttpServer(options: NestApplicationOptions);
abstract useStaticAssets(...args: any[]);
abstract setViewEngine(engine: string);
abstract getRequestHostname(request);
abstract getRequestMethod(request);
abstract getRequestUrl(request);
abstract status(response, statusCode: number);
abstract reply(response, body: any, statusCode?: number);
abstract end(response, message?: string);
abstract render(response, view: string, options: any);
abstract redirect(response, statusCode: number, url: string);
abstract getRequestHostname(request: any);
abstract getRequestMethod(request: any);
abstract getRequestUrl(request: any);
abstract status(response: any, statusCode: number);
abstract reply(response: any, body: any, statusCode?: number);
abstract end(response: any, message?: string);
abstract render(response: any, view: string, options: any);
abstract redirect(response: any, statusCode: number, url: string);
abstract setErrorHandler(handler: Function, prefix?: string);
abstract setNotFoundHandler(handler: Function, prefix?: string);
abstract isHeadersSent(response);
abstract setHeader(response, name: string, value: string);
abstract isHeadersSent(response: any);
abstract setHeader(response: any, name: string, value: string);
abstract registerParserMiddleware(prefix?: string, rawBody?: boolean);
abstract enableCors(
options: CorsOptions | CorsOptionsDelegate<TRequest>,
Expand Down

0 comments on commit de6169e

Please sign in to comment.