2.1.4 • Published 2 months ago

@zerodep/types v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@zerodep/types

version language types license

CodeFactor Known Vulnerabilities

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
2.1.4

2 months ago

2.1.3

2 months ago

2.1.2

2 months ago

2.1.0

11 months ago

2.0.0

11 months ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago