# TypeaheadMatch documentation

## TypeScript declaration

### [TypeaheadMatch](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L52-L66>)

**Kind:** interface

```
import type { TypeaheadMatch } from '@siemens/element-ng/typeahead';
```

A typeahead match, which is a processed typeahead option.

```
interface TypeaheadMatch
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [atBeginning](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L57-L57>) | `boolean` |  |
| [iconClass](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L65-L65>) (optional) | `string` |  |
| [itemSelected](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L64-L64>) (optional) | `boolean` |  |
| [matches](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L58-L58>) | `number` |  |
| [matchesAllParts](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L62-L62>) | `boolean` |  |
| [matchesAllPartsSeparately](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L63-L63>) | `boolean` |  |
| [matchesEntireQuery](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L61-L61>) | `boolean` |  |
| [option](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L53-L53>) | `TypeaheadOption` |  |
| [result](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L55-L55>) | `MatchSegment[]` |  |
| [stringMatch](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L56-L56>) | `boolean` |  |
| [text](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L54-L54>) | `string` |  |
| [uniqueMatches](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L59-L59>) | `number` |  |
| [uniqueSeparateMatches](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L60-L60>) | `number` |  |

### Types Documentation

### [MatchSegment](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L42-L47>)

**Kind:** interface

```
import type { MatchSegment } from '@siemens/element-ng/typeahead';
```

A segment of a [TypeaheadMatch](<index.html#t:TypeaheadMatch>), which is a matching or non-matching segment of a typeahead option.

```
interface MatchSegment
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [isMatching](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L44-L44>) | `boolean` |  |
| [matches](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L45-L45>) | `number` |  |
| [text](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L43-L43>) | `string` |  |
| [uniqueMatches](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L46-L46>) | `number` |  |

### [TypeaheadOption](<https://github.com/siemens/element/blob/main/projects/element-ng/typeahead/si-typeahead.model.ts#L11-L11>)

**Kind:** type alias

```
import type { TypeaheadOption } from '@siemens/element-ng/typeahead';
```

A singular item to be used in the typeahead. Can be either a string or an object.

```
type TypeaheadOption = string | { [key in string | number]: any }
```
