nationid - v2.2.1
    Preparing search index...

    Function listSupportedCodes

    • List every supported DocumentTypeCode in registration order. Stable across patch releases; new codes are appended (never inserted mid-list) so it is safe to drive UI dropdowns from this list directly.

      Returns readonly DocumentTypeCode[]

      Read-only array of all registered document type codes.

      listSupportedCodes().length; // 142 as of v2.1
      listSupportedCodes().filter(c => c.startsWith("MX_")); // Mexico-only codes