# detectApprovalStates

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/semantic-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/semantic-detector.ts#L232)

Detect approval-related states

Finds state references containing "Approval" in their name:
- AwaitingApproval, RejectedApproval, etc.

## Signature

```ts
function detectApprovalStates(code: string): string[]
```

## Parameters

| Name | Type |
|---|---|
| `code` | `string` |

**Returns:** `string[]`
