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

Commit be38e84

Browse files
committed
expose all Flow errors
1 parent 9bae7db commit be38e84

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/__typings__/main-test.js

-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ export const HookTest = () => {
8585
],
8686
});
8787

88-
Number(2 + null);
89-
9088
type CustomModifier = $Shape<Modifier<'custom', { foo: boolean }>>;
9189
usePopper<StrictModifiers | CustomModifier>(referenceElement, popperElement, {
9290
modifiers: [

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)