-
We wrote a plugin which requires us to check for 'WrapperLike', but this type isn't exported. How would you guys propose we check for this? |
Beta Was this translation helpful? Give feedback.
Answered by
cexbrayat
Oct 11, 2023
Replies: 1 comment 7 replies
-
Yeah I don't think this interface is exported. You have access to |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ha yes I understand why. You're trying to find components using a string selector, which loses all type-safety and returns a WrapperLike.
You can make it work with something like:
But to be honest with you, I think you're shooting yourself in the foot by trying to do this if you care about type safety.
The "type-sa…