1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 10:14:02 +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:
Davi Alexandre
2023-06-12 19:06:24 -03:00
committed by GitHub
parent 3ad13d6015
commit a94d64ec09

View File

@@ -120,7 +120,7 @@ Okay, but now we'll need a way for the user to actually turn a block into a code
```jsx
// Import the `Editor` and `Transforms` helpers from Slate.
import { Editor, Transforms } from 'slate'
import { Editor, Transforms, Element } from 'slate'
const initialValue = [
{