---
jsApi: true
title: "[F] $list"

---
```ts
$list(
   context, 
   target, 
   listedType?): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](../interfaces/DecoratorContext.md) |
| `target` | [`Operation`](../interfaces/Operation.md) |
| `listedType`? | [`Type`](../type-aliases/Type.md) |

## Returns

`void`

## Deprecated

Use the `listsResource` decorator in `@typespec/rest` instead.
