parseStateDefinitions
parseStateDefinitions(
json):StateDefinition[]
Defined in: packages/simply-settings-core/src/address/stateDefinitions.ts:45
Validates and normalizes state definitions given as a JSON object mapping {Country}-{State}
ISO 3166-2 codes to state names — e.g. { "US-CA": "California" }, the same shape the
mattandneil/statecodes Visualforce page edits.
Parameters
Section titled “Parameters”unknown
The already-parsed JSON value.
Returns
Section titled “Returns”One definition per key, in the object’s key order.
Throws
Section titled “Throws”SfError (InvalidStateDefinitionsError) naming the first invalid entry.