European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Function isDocumentID

    • 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

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