File tree Expand file tree Collapse file tree
platform-express/adapters
platform-fastify/adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ export class ExpressAdapter extends AbstractHttpAdapter {
4444
4545 public listen ( port : string | number , callback ?: ( ) => void ) ;
4646 public listen ( port : string | number , hostname : string , callback ?: ( ) => void ) ;
47- public listen ( port : any , hostname ? : any , callback ?: any ) {
48- return this . httpServer . listen ( port , hostname , callback ) ;
47+ public listen ( port : any , ... args : any [ ] ) {
48+ return this . httpServer . listen ( port , ... args ) ;
4949 }
5050
5151 public close ( ) {
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export class FastifyAdapter extends AbstractHttpAdapter {
2525
2626 public listen ( port : string | number , callback ?: ( ) => void ) ;
2727 public listen ( port : string | number , hostname : string , callback ?: ( ) => void ) ;
28- public listen ( port : any , hostname ? : any , callback ?: any ) {
29- return this . instance . listen ( port , hostname , callback ) ;
28+ public listen ( port : any , ... args : any [ ] ) {
29+ return this . instance . listen ( port , ... args ) ;
3030 }
3131
3232 public reply ( response : any , body : any , statusCode : number ) {
You can’t perform that action at this time.
0 commit comments