Skip to content

Commit

Permalink
Merge pull request #10799 from Tony133/chore/update-logger-fastify-ad…
Browse files Browse the repository at this point in the history
…apter

chore(fastify-adapter): updated the method for fastify logger
  • Loading branch information
kamilmysliwiec authored Feb 1, 2023
2 parents 66a76e2 + 3124587 commit ae4dd57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/platform-fastify/adapters/fastify-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
fastify,
FastifyBodyParser,
FastifyInstance,
FastifyLoggerInstance,
FastifyBaseLogger,
FastifyPluginAsync,
FastifyPluginCallback,
FastifyRegister,
Expand Down Expand Up @@ -51,23 +51,23 @@ import {

type FastifyHttp2SecureOptions<
Server extends http2.Http2SecureServer,
Logger extends FastifyLoggerInstance = FastifyLoggerInstance,
Logger extends FastifyBaseLogger = FastifyBaseLogger,
> = FastifyServerOptions<Server, Logger> & {
http2: true;
https: http2.SecureServerOptions;
};

type FastifyHttp2Options<
Server extends http2.Http2Server,
Logger extends FastifyLoggerInstance = FastifyLoggerInstance,
Logger extends FastifyBaseLogger = FastifyBaseLogger,
> = FastifyServerOptions<Server, Logger> & {
http2: true;
http2SessionTimeout?: number;
};

type FastifyHttpsOptions<
Server extends https.Server,
Logger extends FastifyLoggerInstance = FastifyLoggerInstance,
Logger extends FastifyBaseLogger = FastifyBaseLogger,
> = FastifyServerOptions<Server, Logger> & {
https: https.ServerOptions;
};
Expand Down

0 comments on commit ae4dd57

Please sign in to comment.