Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e485a05

Browse files
committed
expose all Flow errors
1 parent e078b49 commit e485a05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/usePopper.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export const usePopper = <Modifiers: DefaultModifiers = DefaultModifiers>(
9797
) {
9898
return prevOptions.current;
9999
} else {
100-
// $FlowFixMe: Cannot assign `newOptions` to `prevOptions.current` because string [1] is incompatible with string literal `updateState` [2] in property `name` of array element of property `modifiers`
101100
prevOptions.current = newOptions;
102101
return newOptions;
103102
}
@@ -123,7 +122,7 @@ export const usePopper = <Modifiers: DefaultModifiers = DefaultModifiers>(
123122
}
124123

125124
const createPopper = options.createPopper || defaultCreatePopper;
126-
const popperInstance = createPopper(
125+
const popperInstance = createPopper<InternalModifiers>(
127126
referenceElement,
128127
popperElement,
129128
popperOptions

0 commit comments

Comments
 (0)