SchemaAccessors
interfaceThe node accessors a SerializationSchema field is applied through. A string resolves to a method on the node; `{field}` resolves to one of the node's own fields. `null` states that the direction is deliberately unsupported — an export-only property computed from others (`setter: null`, as ListNode's `tag` is derived from `listType`) or an import-only one (`getter: null`). Leaving a direction undefined uses the conventional `get<Prop>`/`set<Prop>` name, which must exist: a name that resolves to nothing would silently drop the property, so it fails at registration. The two directions are independent, and a node may reasonably mix them: TableCellNode reads `headerState` straight off the field but applies it through `setHeaderStyles`, which supplies a default mask.
Import
import { SchemaAccessors } from '@modular/sdk/editor';Members2
- getteroptional
SchemaGetterAccessor- setteroptional
SchemaSetterAccessor