| title | ARC0014: Generic query method |
|---|---|
| description | Fix ARC0014 in Arc TypeScript by removing generic type parameters from model-bound query methods so their endpoint contracts use concrete types. |
A method decorated with @query() declares a type parameter. Rule: arc-core/arc0014.
An HTTP caller cannot choose the generic argument of a discovered query.
@query()
static all<T>(): T[] { return []; }@query()
static all(): TaskItem[] { return []; }