Skip to content

Commit 55ee30f

Browse files
committed
fix(type): fix export type issue. (#170)
1 parent e321dc8 commit 55ee30f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

core/src/index.nohighlight.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
22
import Editor, { TextareaCodeEditorProps } from './Editor';
33

4+
export * from './Editor';
5+
46
export default React.forwardRef<HTMLTextAreaElement, TextareaCodeEditorProps>((props, ref) => {
57
return <Editor {...props} ref={ref} />;
68
});

core/src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Pluggable } from 'unified';
33
import Editor, { TextareaCodeEditorProps } from './Editor';
44
import rehypePrism from 'rehype-prism-plus';
55

6+
export * from './Editor';
7+
68
export default React.forwardRef<HTMLTextAreaElement, TextareaCodeEditorProps>((props, ref) => {
79
const { rehypePlugins = [[rehypePrism, { ignoreMissing: true }]] as Pluggable[], ...reset } = props;
810
return <Editor {...reset} rehypePlugins={rehypePlugins} ref={ref} />;

0 commit comments

Comments
 (0)