fastify / fastify/help

TS Issues on routerOptions option?

Open
#1,109 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
68
Forks
8
Avg merge
11h 2m
Merged PRs (30d)
2

Description

Hello guys,
I'm trying to use the newest version of fastify 5.5.x and trying to remove the warning:

```
The router options for ignoreTrailingSlash property access is deprecated. Please use "options.routerOptions" instead for accessing router options. The router options will be removed in `fastify@6`.
```

But when initializing the object with
```
routerOptions: {
ignoreDuplicateSlashes: true,
ignoreTrailingSlash: true,
}
```

the property is not found on the type `FastifyServerOptions`

Is this a bug with the new version?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.