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

default discord avatar
sanslet8 months ago
1

Thanks!

  • discord user avatar
    alessiogr
    9 months ago

    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

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.