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

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

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](Interface.DecoratorContext.md) |
| `target` | [`Operation`](Interface.Operation.md) |
| `listedType`? | [`Type`](Type.Type.md) |

## Returns

`void`

## Deprecated

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