Skip to content

ARC0014: Generic query method

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 []; }