diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 28bf65c6..a8e59c32 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -40,11 +40,12 @@ import { TooltipLabel, useTooltip, } from "./useTooltip"; +import { XOR } from "ts-xor"; // Unfortunately Omit doesn't distribute nicely over sum types, so we have to // piece together the useTooltip options type by hand type TooltipProps = Omit & - (TooltipLabel | TooltipDescription) & { + XOR & { /** * Whether the trigger element is interactive. * When trigger is interactive: