interface FieldPathSpec<TState, TContainer, TValue> How generated code describes one field path.
Properties
member
readonly member: string; The View member the path is below: a settable object member, or a keyed collection.
path
readonly path: readonly string[]; The member names below the member, or below the row.
row
readonly row?: {
readonly key: string;
readonly rows: (state: TState) => readonly TContainer[] | undefined;
readonly keyOf: (row: TContainer) => string;
}; A cell's row: its key, how to find the rows in the state and how to read a row's key.
container
readonly container?: (state: TState) => TContainer | null | undefined; Reads the member's object from the state; for a member's field path.
read
readonly read: (container: TContainer) => TValue; Reads the value at the path from the member's object or the row.
encode
readonly encode: (value: TValue) => unknown; No documentation.
decode
readonly decode: (wire: unknown) => TValue; No documentation.
nullable
readonly nullable?: boolean; No documentation.
integer
readonly integer?: boolean; No documentation.
offset
readonly offset?: boolean; No documentation.
choices
readonly choices?: readonly TValue[]; No documentation.
validation
readonly validation?: (state: TState) => BridgeValidationState | undefined; The View's validation, when it has validation.