floating-ui / react-popper

🍿⚛Official React library to use Popper, the positioning library
https://popper.js.org/react-popper/
MIT License
2.5k stars 226 forks source link

Export usePopper options type #433

Open valtism opened 2 years ago

valtism commented 2 years ago

Exporting the options type is very useful as it is currently impossible to get it using Parameters<typeof usePopper>[2] as extending an interface in Typescript will throw the error An interface can only extend an identifier/qualified-name with optional type arguments because of the <TModifier extends Partial inside createPopper's type.