@codecademy/gamut
68.2.268.2.3-alpha.809fdd.0
dist/Popover/types.d.ts~
dist/Popover/types.d.tsModified+3−2
Index: package/dist/Popover/types.d.ts
===================================================================
--- package/dist/Popover/types.d.ts
+++ package/dist/Popover/types.d.ts
@@ -82,14 +82,15 @@
*/
isOpen: boolean;
/**
* The target element around which the popover will be positioned.
+ * Only ref objects (e.g. from useRef) are supported at runtime; RefCallback is not.
*/
- targetRef: React.RefObject<Pick<HTMLDivElement, 'getBoundingClientRect' | 'contains'>>;
+ targetRef: React.Ref<HTMLElement | null>;
/**
* The PopoverContainer which contents will be rendered into.
*/
- popoverContainerRef?: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;
+ popoverContainerRef?: React.Ref<HTMLDivElement | null>;
/**
* Whether to add width restrictions to Popover.
*/
widthRestricted?: boolean;