You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
I want to handle the fastify error when starting the app.
awaitapp.listen(port,host,(err: Error)=>{if(err){logger.error(err)process.exit(1)}logger.info(`Application is listening on port ${host}:${port}.`,'Main')})
If you write this now, typescript throws an error, so in INestApplication, the listen method is defined like this:
Feature Request
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
I want to handle the fastify error when starting the app.
If you write this now, typescript throws an error, so in INestApplication, the listen method is defined like this:
I suggest taking the annotation from https://github.com/fastify/fastify/blob/master/fastify.d.ts#L529-L537 and adding it to NestFastifyApplication
Teachability, Documentation, Adoption, Migration Strategy
What is the motivation / use case for changing the behavior?
The text was updated successfully, but these errors were encountered: