From 04da58d653d1b6b62f7c887fb32eaec486a9b807 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 29 Mar 2021 23:35:08 -0700 Subject: [PATCH] docs: Organize Element docs into sections --- docs/api/element.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api/element.md b/docs/api/element.md index df6848a57..ed7dd6e27 100644 --- a/docs/api/element.md +++ b/docs/api/element.md @@ -11,6 +11,14 @@ interface Element { ## Static methods +### Retrieval methods + +###### `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` Check if a `value` implements the `Element` interface. @@ -18,7 +26,3 @@ Check if a `value` implements the `Element` interface. ###### `Element.isElementList(value: any): value is Element[]` Check if a `value` is an array of `Element` objects. - -###### `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.