Skip to content

[V] $field

const $field: FieldDecorator;

Decorate a model property or union variant with a field index. Field indices are required for all fields of emitted messages and all variants of unions that are emitted as a oneof.

ctx

Decorator context whose program stores the field index.

target

Model property or union variant to number.

fieldIndex

Positive integer no greater than 2^29 - 1, excluding 19000 through 19999.