fix: make as prop optional
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react'
|
||||
|
||||
export interface NodeViewContentProps {
|
||||
className?: string,
|
||||
as: React.ElementType,
|
||||
as?: React.ElementType,
|
||||
}
|
||||
|
||||
export const NodeViewContent: React.FC<NodeViewContentProps> = props => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useReactNodeView } from './useReactNodeView'
|
||||
|
||||
export interface NodeViewWrapperProps {
|
||||
className?: string,
|
||||
as: React.ElementType,
|
||||
as?: React.ElementType,
|
||||
}
|
||||
|
||||
export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = props => {
|
||||
|
||||
Reference in New Issue
Block a user