diff --git a/src/components/InternalTooltip/index.d.ts b/src/components/InternalTooltip/index.d.ts index c41d7cce5..da2d173da 100644 --- a/src/components/InternalTooltip/index.d.ts +++ b/src/components/InternalTooltip/index.d.ts @@ -1,4 +1,4 @@ -import { ReactNode, RefObject } from 'react'; +import { PropsWithChildren, ReactNode, RefObject } from 'react'; import { TriggerElementRefFunction } from '../InternalOverlay'; import { BaseProps } from '../types'; @@ -8,4 +8,4 @@ export interface InternalTooltipProps extends BaseProps { triggerElementRef?: RefObject | TriggerElementRefFunction; } -export default function(props: InternalTooltipProps): JSX.Element | null; +export default function(props: PropsWithChildren): JSX.Element | null;