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

    Function isMEPID

    • Type guard to check if a string is a valid MEP ID

      Parameters

      • value: string

        String to validate

      Returns value is MEPID

      true if the value matches MEP ID format (numeric string)

      if (isMEPID("124936")) {
      const id = "124936" as MEPID;
      }