# InteractionInputCollection

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

A collection of interaction inputs that supports both indexed and name-based access.

## Definition

```typescript
interface InteractionInputCollection
  extends InteractionInput]],
    InteractionInput]],
    InteractionInput]],
    IEnumerable {
  toArray(): InteractionInput[];
}
```

## Methods

- [toArray](/reference/api/typescript/aspire.hosting/interactioninputcollection/toarray.md) -- `method` -- Gets all inputs in declaration order.
    ```typescript
  toArray(): InteractionInput[]
  ```
