Skip to main content

LexicalExportJSON

type
type LexicalExportJSON<T extends LexicalNode> = Prettify<Omit<LexicalFullExportJSON<T>, 'type' | 'version'> & { type: GetStaticNodeType<T>; /** * Written by `exportJSON()` so the output remains readable by older * versions. Required, like {@link SerializedLexicalNode.version}: this is * the legacy form, which writes it unconditionally. `exportJSON(true)` * returns the {@link SerializedPartial} of this, where it is optional * along with everything else parsing restores on its own. */ version: number; } & NodeStateJSON<T>>

Import

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