Skip to content

TS Issues on routerOptions option? #1109

@dsolis

Description

@dsolis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions