@zerodep/types
v2.1.8
Published
A collection of Typescript literal union types
Downloads
83
Readme
@zerodep/types
A collection of Typescript literal union types.
Full documentation is available at the zerodep.app page.
Definitions
// Country Names
type Country = "Afghanistan" | "Albania" | ... | "United States" | ... | "Zimbabwe";
// Country ISO2 Codes
type CountryIso2 = "AF" | "AL" | ... | "US" | ... | "ZQ";
// Currencies
type Currency = "AED" | "AFN" | ... | "USD" | ... | "ZWL";
// Crypto Currencies
type CurrencyCrypto = "ADA" | ... | "BTC" | ... | "ZEC";
// Locales
type Locale = "ar" | ... | "en-US" | ... | "zh-TW";
// StateCa
type StateCa = "Alberta" | ... | "Yukon"
// StateCaAbbr
type StateCaAbbr = "AB" | ... | "YT"
// StateUs
type StateUs = "Alabama" | ... | "U.S. Virgin Islands" | ... | "Wyoming";
// StateUsAbbr
type StateUsAbbr = "AK" | ... | "VI" | ... | "WY";
// Timezones
type TimeZone = "Africa/Abidjan" | ... | "America/New_York" | ... | "Pacific/Wallis";
Examples
import { Country, CountryIso2, Currency, CurrencyCrypto, Locale, StateCa, StateCaAbbr, StateUs, StateUsAbbr, TimeZone } from '@zerodep/types';
// use types as required