Skip to main content

LexicalUpdateJSON

type

Omit the children, type, and version properties from the given SerializedLexicalNode definition. This is the shape a hand-written `updateFromJSON` override reads: each property keeps its declared type. The parser behind a serialization schema faces wider input than that — see LexicalParseJSON.

type LexicalUpdateJSON<T extends SerializedLexicalNode> = Omit<T, 'children' | 'type' | 'version'>

Import

import { LexicalUpdateJSON } from '@modular/sdk/editor';