Skip to content

Commit c687421

Browse files
bugfix(platform-fastify): add missing constructor interfaces (http, http2) nestjs#1950
1 parent b04d2bb commit c687421

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ export class FastifyAdapter extends AbstractHttpAdapter {
1212
constructor(
1313
instanceOrOptions:
1414
| fastify.FastifyInstance<any, any, any>
15-
| fastify.ServerOptions = fastify(),
15+
| fastify.ServerOptions
16+
| fastify.ServerOptionsAsHttp
17+
| fastify.ServerOptionsAsHttp2
18+
| fastify.ServerOptionsAsSecure
19+
| fastify.ServerOptionsAsSecureHttp
20+
| fastify.ServerOptionsAsSecureHttp2 = fastify(),
1621
) {
1722
const instance =
1823
instanceOrOptions &&

0 commit comments

Comments
 (0)