Skip to content

declared-field: Decorated field is erased

A decorated property uses declare. Rule: arc-core/declared-field.

declare erases the property from the emitted class; use a definite assignment assertion when Arc initializes it.

@field(String) declare title: string;
@field(String) title!: string;