UseInteractionsReturn interface doesn't exist in the library @floating-ui/react #2838
Unanswered
rrojas-prmnt
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
-
Hello!
I was using the
useInteractions
hook and needed to export the return type. However, I've discovered that this interface does not exist in@floating-ui/react
. The only workaround is to recreate it myself. After considering this and comparing it to other hooks that already have the return type implemented, I'm wondering whether this interface should be created in the library or if I should implement it myself.For more details, you can refer to the documentation on the return value of the
useInteractions
hook: https://floating-ui.com/docs/useInteractions#return-value. Is this a missing type in the library?You can also compare it with the
useFloating
hook: https://floating-ui.com/docs/useFloating#return-value. In this case, the return type (UseFloatingReturn) already exists in the library.Beta Was this translation helpful? Give feedback.
All reactions