Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 583 Bytes

missing-field.md

File metadata and controls

26 lines (18 loc) · 583 Bytes
title missing-field: Property is not bound
description Mark every model-bound property with @field.

What

A non-declare public instance property on @command() or @readModel() lacks @field. Rule: arc-core/missing-field.

Why

Unmarked properties are invisible to Arc's wire schema. Private fields (private and #) and private-like _ names are intentionally ignored.

Bad

@command()
export class Register { title!: string; handle() {} }

Good

@command()
export class Register { @field(String) title!: string; handle() {} }