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

Commit 1de36ab

Browse files
bengryFezVrasta
authored andcommitted
better TypeScript modifier types for usePopper
1 parent e27b1f6 commit 1de36ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

typings/tests/main-test.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ const HookTest = () => {
6060
referenceElement,
6161
popperElement,
6262
{
63-
modifiers: [{ name: 'arrow', options: { element: arrowElement } }],
63+
modifiers: [
64+
{
65+
name: 'arrow',
66+
options: { element: arrowElement as HTMLElement | undefined },
67+
},
68+
],
6469
}
6570
);
6671

0 commit comments

Comments
 (0)