Skip to content

Tighten FastifyRequest.id type #4993

@samchungy

Description

@samchungy

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.21

Plugin version

No response

Node.js version

16.x

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

Ventura 13.5.1

Description

Accessing the id field on the request object lead my Eslint to complain I was operating on an any. I hope and don't imagine this should be a different type.

id: any;

Can we tighten it to a string?

Steps to Reproduce

id: any;

Expected Behavior

Type should be a string

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