Slate
main
ExamplesGitHubSlack
Search
⌃K
Links
main
Introduction
Walkthroughs
Installing Slate
Adding Event Handlers
Defining Custom Elements
Applying Custom Formatting
Executing Commands
Saving to a Database
Using the Bundled Source
Concepts
Interfaces
Nodes
Locations
Transforms
Operations
Commands
Editor
Plugins
Rendering
Serializing
Normalizing
TypeScript
Migrating
API
Transforms
Node Types
Editor
Element
Node
NodeEntry
Text
Location Types
Operation
Scrubber
Libraries
Slate React
Slate History
Slate Hyperscript
General
Resources
Contributing
Changelog
FAQ
Powered By GitBook

Node Types

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
  • ​Node​
  • ​NodeEntry​
  • ​Editor​
  • ​Element​
  • ​Text​
API - Previous
Transforms
Next
Editor
Last modified 1yr ago
Copy link