Weird behaviour of VSCode with the types for a function definition #738
Unanswered
callmekatootie
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
-
I am trying to work with the Ports feature under Plasmo Messaging - Reference
In my content script, I have defined the following import statement:
When I hover over the
getPort
token, I see the following function definition:I then proceed to use the function in my code as follows:
But I get an error from typescript:
Not sure what I am doing wrong here. I thought there was a name conflict so I aliased
getPort()
to something else on import, but I still get the error.Beta Was this translation helpful? Give feedback.
All reactions