Everything the registry needs to know about one country: its primary key,
the aliases that resolve to it, and the validator it registers.
Every country module exports one as country (#122). Defining it is free of
side effects; nothing is registered until it is passed to register() from
idnumbers/core. The root idnumbers entry registers all of them.
The type parameters keep the literal key, the literal aliases, and the parse
result type (#123), from which the ParseResultMap type test checks the map.
Everything the registry needs to know about one country: its primary key, the aliases that resolve to it, and the validator it registers.
Every country module exports one as
country(#122). Defining it is free of side effects; nothing is registered until it is passed toregister()fromidnumbers/core. The rootidnumbersentry registers all of them.The type parameters keep the literal key, the literal aliases, and the parse result type (#123), from which the
ParseResultMaptype test checks the map.