How to get automatic IntelliSense for name in sendToContentScript like sendToBackground? #721
Unanswered
MiniSuperDev
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
-
For example there you can use any name.
https://github.com/PlasmoHQ/examples/blob/a421f1a93eab51808a45f97eff498a72f817fae5/with-messaging/popup.tsx#L40-L43
But in
sendToBackground
you get automatic IntelliSensehttps://github.com/PlasmoHQ/examples/blob/a421f1a93eab51808a45f97eff498a72f817fae5/with-messaging/popup.tsx#L22-L27
And if you can also please show me an example of how the types should be defined to handle those messages in a better way, and have autocompletion in both the name and the body.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions