Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Understanding Predefined Types in RichText JSON Responses

discord user avatar
alessiogr
2 years ago
1

Yep!



import type { SerializedEditorState } from 'lexical'

Does not automatically contain types for all the actual nodes you have enabled in your editor though, so you will have to use type assertion

  • default discord avatar
    sanslet2 years ago

    Thanks!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.