---
title: Node Types APIs
slug: docs/github-example/node-types-apis
docTags: 
createdAt: 2026-05-05T15:31:38.271Z
---

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](docId\:Cu4FOtBHVHdZ0kGo_Lsla)
- [NodeEntry](docId\:Rt90nDtJK7AjJ73jHkVlW)
- [Editor](docId\:lNRN06DN80Q7sbcwkyIJ9)
- [Element](docId\:UbFSh75_QKKSMiFSZ5s8o)
- [Text](docId\:F7CwTS1cYMF8BuKsfsNtN)
