---
title: 'ARC0014: Generic query method'
editUrl: https://github.com/Cratis/Arc.TypeScript/edit/main/Documentation/code-analysis/ARC0014.md
description: Remove unbound type parameters from model-bound queries.
---


## What

A method decorated with `@query()` declares a type parameter. Rule: `arc-core/arc0014`.

## Why

An HTTP caller cannot choose the generic argument of a discovered query.

## Bad

```ts
@query()
static all<T>(): T[] { return []; }
```

## Good

```ts
@query()
static all(): TaskItem[] { return []; }
```
