You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.Originally posted by @rrojas-prmnt in #2838
The text was updated successfully, but these errors were encountered: