Replies: 1 comment
-
Hi @tmcw! Yes, it looks like we need to export a type that users can use in place of Thanks for reporting this! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just updated to Remix v2 and the newest version of
@sentry/remix
. My MetaFunction looks likePreviously, this was fine because
MetaFunction
made data typedany
but now that it's typedunknown
, TypeScript won't abide by this. The Sentry machinery that insertssentryTrace
seems to be behind the scenes and there's no type helper that I can find that would make this type-check properly.Also, I see that there are integration tests for this but it doesn't seem like the documentation mentions using MetaFunction anymore?
I don't want to type
data
asany
because it would make any other data access in my meta function unsafe. Is there a good way to solve this problem?Beta Was this translation helpful? Give feedback.
All reactions