react-popper icon indicating copy to clipboard operation
react-popper copied to clipboard

Export usePopper options type

Open valtism opened this issue 2 years ago • 0 comments

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.

valtism avatar Dec 28 '21 04:12 valtism