---
title: "init(typeIdentifier:value:)"
framework: appintentstesting
role: symbol
role_heading: Initializer
path: "appintentstesting/anyappenum/init(typeidentifier:value:)"
---

# init(typeIdentifier:value:)

Creates an enumeration with a typed raw value.

## Declaration

```swift
init(typeIdentifier: String, value: any LosslessStringConvertible)
```

## Parameters

- `typeIdentifier`: The enumeration type identifier.
- `value`: The raw, typed value that gets converted to a string representation.

## See Also

### Creating an enum

- [init(typeIdentifier:rawValue:)](appintentstesting/anyappenum/init(typeidentifier:rawvalue:).md)
- [typeIdentifier](appintentstesting/anyappenum/typeidentifier.md)
- [rawValue](appintentstesting/anyappenum/rawvalue.md)
