---
title: "isInstance(_:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/appintenttypedefinition/isinstance(_:)"
---

# isInstance(_:)

Validates that the provided value matches this definition’s type.

## Declaration

```swift
func isInstance(_ value: Self.Instance) throws
```

## Parameters

- `value`: The value to validate.

## Discussion

Discussion If validation fails, this method throws an error.
