Prerequisites
Fastify version
4.1.0
Plugin version
No response
Node.js version
18.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.0
Description
The .addresses() server method is not present in the types for the fastify instance but this method is present in the documentation and in the instance.
Steps to Reproduce
Simply create a fastify instance and call .addresses()
import fastify from 'fastify';
const fastifyInstance = fastify();
const addresses = fastifyInstance.addresses();
// Property 'addresses' does not exist on type 'FastifyInstance & PromiseLike >'.
The tsconfig.json I use:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true
},
"exclude": [
"node_modules"
]
}
Expected Behavior
The fastifyInstance.addresses() method should be in the FastifyInstance type.
Prerequisites
Fastify version
4.1.0
Plugin version
No response
Node.js version
18.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.0
Description
The
.addresses()server method is not present in the types for the fastify instance but this method is present in the documentation and in the instance.Steps to Reproduce
Simply create a
fastifyinstance and call.addresses()The tsconfig.json I use:
{ "compilerOptions": { "module": "commonjs", "target": "es5", "sourceMap": true }, "exclude": [ "node_modules" ] }Expected Behavior
The
fastifyInstance.addresses()method should be in theFastifyInstancetype.