Type safety for message responses? #946
Unanswered
maybebansky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my content script Im sending a message to the background script in order to get the tab ID.
Content:
Background:
This is working but tabId has a type of any. Is there a way to get TypeSafety or do I need to manualy cast the type or use something like Zod?
Beta Was this translation helpful? Give feedback.
All reactions