fix: make as prop optional

This commit is contained in:
Philipp Kühn
2021-04-08 09:11:45 +02:00
parent 536663f816
commit f8dec5f905
2 changed files with 2 additions and 2 deletions

View File

@@ -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 => {

View File

@@ -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 => {