Created
August 31, 2022 21:37
-
-
Save jordanskomer/f668881517ac52b909bef8600ddc9faf to your computer and use it in GitHub Desktop.
Typescript State Enum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Represents every state 2 digit letter code. Derrived from https://www.ssa.gov/international/coc-docs/states.html | |
| * | |
| * @author jordanskomer | |
| */ | |
| export enum State { | |
| Alabama = "AL", | |
| Alaska = "AK", | |
| AmericanSamoa = "AS", | |
| Arizona = "AZ", | |
| Arkansas = "AR", | |
| California = "CA", | |
| Colorado = "CO", | |
| Connecticut = "CT", | |
| Delaware = "DE", | |
| DistrictOfColumbia = "DC", | |
| FederatedStatesOfMicronesia = "FM", | |
| Florida = "FL", | |
| Georgia = "GA", | |
| Guam = "GU", | |
| Hawaii = "HI", | |
| Idaho = "ID", | |
| Illinois = "IL", | |
| Indiana = "IN", | |
| Iowa = "IA", | |
| Kansas = "KS", | |
| Kentucky = "KY", | |
| Louisiana = "LA", | |
| Maine = "ME", | |
| MarshallIslands = "MH", | |
| Maryland = "MD", | |
| Massachusetts = "MA", | |
| Michigan = "MI", | |
| Minnesota = "MN", | |
| Mississippi = "MS", | |
| Missouri = "MO", | |
| Montana = "MT", | |
| Nebraska = "NE", | |
| Nevada = "NV", | |
| NewHampshire = "NH", | |
| NewJersey = "NJ", | |
| NewMexico = "NM", | |
| NewYork = "NY", | |
| NorthCarolina = "NC", | |
| NorthDakota = "ND", | |
| NorthernMarianaIslands = "MP", | |
| Ohio = "OH", | |
| Oklahoma = "OK", | |
| Oregon = "OR", | |
| Palau = "PW", | |
| Pennsylvania = "PA", | |
| PuertoRico = "PR", | |
| RhodeIsland = "RI", | |
| SouthCarolina = "SC", | |
| SouthDakota = "SD", | |
| Tennessee = "TN", | |
| Texas = "TX", | |
| Utah = "UT", | |
| Vermont = "VT", | |
| VirginIslands = "VI", | |
| Virginia = "VA", | |
| Washington = "WA", | |
| WestVirginia = "WV", | |
| Wisconsin = "WI", | |
| Wyoming = "WY", | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment