fix some react ts issues
This commit is contained in:
@@ -100,10 +100,7 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
|
||||
return (
|
||||
<>
|
||||
<div ref={this.editorContentRef} />
|
||||
{
|
||||
// @ts-ignore
|
||||
<Portals renderers={this.state.renderers} />
|
||||
}
|
||||
<Portals renderers={this.state.renderers} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
|
||||
return string.charAt(0).toUpperCase() + string.substring(1)
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
this.component.displayName = capitalizeFirstChar(this.extension.config.name)
|
||||
}
|
||||
|
||||
@@ -55,12 +54,8 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
|
||||
}, [])
|
||||
|
||||
return (
|
||||
// @ts-ignore
|
||||
<ReactNodeViewContext.Provider value={{ onDragStart, isEditable }}>
|
||||
{
|
||||
// @ts-ignore
|
||||
<Component {...componentProps} />
|
||||
}
|
||||
<Component {...componentProps} />
|
||||
</ReactNodeViewContext.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
11
packages/react/tsconfig.json
Normal file
11
packages/react/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
},
|
||||
"exclude": [
|
||||
"**/node_modules",
|
||||
"**/dist",
|
||||
"../vue-3",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user