mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 09:13:24 +01:00
16 lines
333 B
Markdown
16 lines
333 B
Markdown
# Node Types
|
|
|
|
The `Node` union type represents all of the different types of nodes that occur in a Slate document tree.
|
|
|
|
```typescript
|
|
type Node = Editor | Element | Text
|
|
|
|
type Descendant = Element | Text
|
|
type Ancestor = Editor | Element
|
|
```
|
|
|
|
- [Node](./node.md)
|
|
- [Editor](./editor.md)
|
|
- [Element](./element.md)
|
|
- [Text](./text.md)
|