From a94d64ec09acc61296d68098eb1b462fa14aa86a Mon Sep 17 00:00:00 2001 From: Davi Alexandre Date: Mon, 12 Jun 2023 19:06:24 -0300 Subject: [PATCH] missed import Element from slate (#5446) Not importing it results in: Property 'isElement' does not exist on type '{ new (): Element; prototype: Element; }'.ts(2339) --- docs/walkthroughs/03-defining-custom-elements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/03-defining-custom-elements.md b/docs/walkthroughs/03-defining-custom-elements.md index 1adbafa76..cfbbf7a53 100644 --- a/docs/walkthroughs/03-defining-custom-elements.md +++ b/docs/walkthroughs/03-defining-custom-elements.md @@ -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 = [ {