Skip to main content

MemberOf

type

Every member of `N` a schema may name: its own fields (`__`-prefixed by convention, which is what makes them distinguishable) and its methods, which covers accessors and `when` predicates alike. This is what `$config` checks a node's schema against, so a `field`, `getter`, `setter` or `when` naming something the node does not have is a compile error at the declaration rather than a property that silently stops round-tripping.

type MemberOf<N> = TaggedNamesOf<N> | ObligationsOf<N> | `declared:${'get' | 'set'}` | `derived:${'get' | 'set'}`

Import

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