Skip to content

[withSentryRouting] match param types are made optional #3808

@IanVS

Description

@IanVS

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/react

Version:

6.9.0

Description

I am just getting started with sentry in my typescript react project, and I found that I start to get type errors when I wrap my react-router Route components with Sentry.withSentryRouting.

Example:
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wFgAoUSWOAbwQgFcYkBfObXAo9GAWhzMkUPgBNc+ANwUq0eACo4KAM5wAykgB2MKAE8OOPACIAAsq07dAeh4Yj08hTQRNy+Bu16GQuAF51FnoAdADuwDAAFh6W3jDAmgDmABSxSACUDhSYjJoYwC5wAIJgYElpdBRwcAA8AHyVVTWpDY1wYCiRvkYozBHQylYAXD2R0ACSokYtjUSaosK+tEmCLAAKOGDK5b61FeStrUQwjFCaNYW90EqXUBOLK0jrEJtBIB1oEUHtUCggykEjPq3UTsKy1BwHOCsVjTMHTarRLxMFjTKrtTrdG4DYY3CZTfYHWbzKCLZbIx4bLZ+Xa0VEzJDHU7nG7XUbA+7kp4vN4wD5fFA-P4A3EguBgiEHaGw+oE6pw8gwxzkbK5OIFC5spK0QHjEGDOg64H6txQeIJVjlWkEo4nM7VUTAAButW1ItYcodzoorCAA

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions