Skip to content

Commit a164f4a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/CodePreview.tsx

+1-1
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)