Skip to main content

rawValue

function

Build a SerializationSchema for a value this schema deliberately does not validate, because something else owns its domain — the motivating case is a nested SerializedEditor, which the nested editor's own `parseEditorState` validates when the property is applied. The value is passed through unchanged and `undefined` is the recoverable default, so declaring the property still routes it through the node's setter (and keeps it visible to schema-walking tooling) without pretending to validate its contents.

function rawValue<T>(): SerializationSchema<T | undefined, never, unknown>

Import

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

Notes

__NO_SIDE_EFFECTS__