[**European Parliament MCP Server API v1.3.9**](../../../README.md)

***

[European Parliament MCP Server API](../../../modules.md) / [types/branded](../README.md) / isDocumentID

# Function: isDocumentID()

> **isDocumentID**(`value`): `value is DocumentID`

Defined in: [types/branded.ts:167](https://github.com/Hack23/European-Parliament-MCP-Server/blob/main/src/types/branded.ts#L167)

Type guard to check if a string is a valid Document ID

## Parameters

### value

`string`

String to validate

## Returns

`value is DocumentID`

true if the value matches Document ID format

## Example

```typescript
if (isDocumentID("A9-2024/0123")) {
  const id = "A9-2024/0123" as DocumentID;
}
```
