From ced37b93c77631b4f1019c7682c1ce16677bbe3f Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Wed, 26 May 2021 00:00:59 -0700 Subject: [PATCH] docs: Try changing function format to use fat arrow to see how it looks --- docs/api/nodes/element.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/nodes/element.md b/docs/api/nodes/element.md index 875aa895c..533cf7b3a 100644 --- a/docs/api/nodes/element.md +++ b/docs/api/nodes/element.md @@ -34,16 +34,16 @@ In a not "void" element, Slate handles the rendering of its `children` (e.g. in ### Retrieval methods -#### `Element.matches(element: Element, props: Partial): boolean` +#### `Element.matches(element: Element, props: Partial) => boolean` Check if an element matches a set of `props`. Note: This checks custom properties, but it does not ensure that any children are equivalent. ### Check methods -#### `Element.isElement(value: any): value is Element` +#### `Element.isElement(value: any) => value is Element` Check if a `value` implements the `Element` interface. -#### `Element.isElementList(value: any): value is Element[]` +#### `Element.isElementList(value: any) => value is Element[]` Check if a `value` is an array of `Element` objects.