diff --git a/packages/@react-spectrum/s2/src/CoachMark.tsx b/packages/@react-spectrum/s2/src/CoachMark.tsx index 41229c198d1..d84dde75282 100644 --- a/packages/@react-spectrum/s2/src/CoachMark.tsx +++ b/packages/@react-spectrum/s2/src/CoachMark.tsx @@ -320,7 +320,7 @@ const actionButtonSize = { XL: 'L' } as const; -export const CoachMarkContext = createContext>({}); +export const CoachMarkContext = createContext, HTMLElement>>({}); export const CoachMark = forwardRef((props: CoachMarkProps, ref: ForwardedRef) => { let colorScheme = useContext(ColorSchemeContext); diff --git a/packages/react-aria-components/src/utils.tsx b/packages/react-aria-components/src/utils.tsx index 30c686ec3ec..903a80ad9de 100644 --- a/packages/react-aria-components/src/utils.tsx +++ b/packages/react-aria-components/src/utils.tsx @@ -20,7 +20,7 @@ interface SlottedValue { slots?: Record } -export type SlottedContextValue = SlottedValue | T | null | undefined; +export type SlottedContextValue = (SlottedValue & T) | null | undefined; export type ContextValue = SlottedContextValue>; type ProviderValue = [Context, T];