Skip to content

Commit a164f4a

Browse files
committed
type: fix ref props.
1 parent f3b6b98 commit a164f4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const InternalCodePreview = React.forwardRef<HTMLDivElement, CodePreviewProps>((
4949
);
5050
});
5151

52-
type CodePreviewComponent = React.FC<React.PropsWithRef<CodePreviewProps>> & {
52+
type CodePreviewComponent = typeof InternalCodePreview & {
5353
Preview: typeof Preview;
5454
Code: typeof Code;
5555
Toolbar: typeof Toolbar;

0 commit comments

Comments
 (0)