mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +02:00
missed import Element from slate (#5446)
Not importing it results in: Property 'isElement' does not exist on type '{ new (): Element; prototype: Element; }'.ts(2339)
This commit is contained in:
@@ -120,7 +120,7 @@ Okay, but now we'll need a way for the user to actually turn a block into a code
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
// Import the `Editor` and `Transforms` helpers from Slate.
|
// Import the `Editor` and `Transforms` helpers from Slate.
|
||||||
import { Editor, Transforms } from 'slate'
|
import { Editor, Transforms, Element } from 'slate'
|
||||||
|
|
||||||
const initialValue = [
|
const initialValue = [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user