Skip to main content

FieldOptions

interface

Both directions of a property that *is* a node field, as withField takes them: the field name, the two value tables (each used by the one direction it names), and the accessor each direction stands in for.

interface FieldOptions

Import

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

Members6

field
string
getteroptional
string

The getter this field read stands in for; see SchemaFieldBase.method.

getterTableoptional
{ readonly [key: string]: unknown; }
setteroptional
string

The setter this field write stands in for; see SchemaFieldBase.method.

setterTableoptional
{ readonly [key: string]: unknown; }
whenoptional
string

The predicate gating the export direction; see SchemaGetterField.when. Like `getterTable`, it belongs to one direction only — the import direction has nothing to gate, since a property that was not written is simply absent.