1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-08 08:16:30 +02:00
Files
slate/docs/api/nodes/README.md
Doug Reeder 7d9d25e179 Adds clarification & examples to demystify Transforms. (#4653)
* Adds clarification & examples to demystify Transforms.

* Fleshes out documentation of NodeOptions for Transforms

* Update docs/concepts/04-transforms.md

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>

* Uses 'API' in the title of all API documents

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2021-11-16 02:20:43 -07:00

369 B

Node Types APIs

The Node union type represents all of the different types of nodes that occur in a Slate document tree.

type Node = Editor | Element | Text

type Descendant = Element | Text
type Ancestor = Editor | Element