Values and types · rule
type.copy_clash
Copied field would replace another field.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type TodoView = Output { pick: [Todo.id, Todo.title, Note.title]}
error: `title` is already in `TodoView`, from `Todo` --> main.jadpo:2:33 |2 | pick: [Todo.id, Todo.title, Note.title] | ^^^^^^^^^^ copied again reason: A copied field never replaces another field, because a field added to a source type would then change this type unseen. next: Remove `title` from one of them with `omit: [...]`, or write `title` as a field below them (agent) rule: type.copy_clash help: https://jadpo.dev/docs/errors/type.copy_clashcheck failed: 1 error, 2 files
Markdown for agents: /docs/errors/type.copy_clash.md.Built from Jadpo main at a707efb.