Skip to content

Commit 5bdb4ff

Browse files
fix(ImpressionArea): fix return type of ImpressionArea (#256)
1 parent a37e63e commit 5bdb4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ImpressionArea/ImpressionArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Props<Tag extends ElementType> = React.ComponentPropsWithoutRef<Tag> &
5050
*/
5151
export const ImpressionArea = forwardRef(ImpressionAreaImpl) as <T extends ElementType = 'div'>(
5252
props: Props<T> & { ref?: Ref<Element<T>> }
53-
) => React.ReactNode;
53+
) => React.ReactElement;
5454

5555
function ImpressionAreaImpl<T extends ElementType = 'div'>(
5656
{ as, rootMargin, areaThreshold, timeThreshold, onImpressionStart, onImpressionEnd, ...props }: Props<T>,

0 commit comments

Comments
 (0)