Skip to content

Commit

Permalink
fix: types (hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Jan 17, 2023
1 parent aaaf2ac commit 13e1462
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ const BoxInner = <T extends keyof ReactHTMLAttributesHacked = 'div'>(
return el;
};

export const Box = forwardRef(BoxInner);
export const Box = forwardRef(BoxInner) as <
T extends keyof ReactHTMLAttributesHacked = 'div',
>(
props: BoxBasedComponentProps<T>,
ref: ForwardedRef<ReactHTMLElementsHacked[T]>,
) => ReactElement | null;

0 comments on commit 13e1462

Please sign in to comment.