@phensley/cldr-types
Advanced tools
Comparing version 0.26.0 to 1.0.0
import { PrimitiveBundle } from './bundle'; | ||
/** | ||
* Maps a name to a key index. | ||
* | ||
* @public | ||
*/ | ||
export interface KeyIndexMap { | ||
[name: string]: KeyIndex<string>; | ||
} | ||
/** | ||
* Indexes each string in an array to its offset in the array. | ||
* | ||
* @public | ||
*/ | ||
export interface KeyIndex<T extends string> { | ||
@@ -13,2 +23,7 @@ readonly index: { | ||
} | ||
/** | ||
* Function for fetching a single field. | ||
* | ||
* @public | ||
*/ | ||
export interface FieldArrow { | ||
@@ -18,2 +33,7 @@ readonly offset: number; | ||
} | ||
/** | ||
* Function for entering a new scope. | ||
* | ||
* @public | ||
*/ | ||
export interface ScopeArrow<T extends string, R> { | ||
@@ -25,2 +45,8 @@ readonly map: { | ||
} | ||
/** | ||
* Function for fetching a field based on plural category and | ||
* number of digits. | ||
* | ||
* @public | ||
*/ | ||
export interface DigitsArrow<T extends string> { | ||
@@ -31,4 +57,12 @@ readonly offset: number; | ||
readonly size2: number; | ||
/** | ||
* Gets the field for the given plural category and number of integer digits. | ||
*/ | ||
get(bundle: PrimitiveBundle, key: T, digits: number): [string, number]; | ||
} | ||
/** | ||
* Function representing a 1-dimensional vector. | ||
* | ||
* @public | ||
*/ | ||
export interface Vector1Arrow<T extends string> { | ||
@@ -38,4 +72,13 @@ readonly len: number; | ||
readonly index: KeyIndex<T>; | ||
/** | ||
* Indicates this vector exists in the bundle. | ||
*/ | ||
exists(bundle: PrimitiveBundle): boolean; | ||
/** | ||
* Gets the field at the corresponding offset of the given key. | ||
*/ | ||
get(bundle: PrimitiveBundle, key: T): string; | ||
/** | ||
* Full mapping of all keys to the corresponding fields. | ||
*/ | ||
mapping(bundle: PrimitiveBundle): { | ||
@@ -45,2 +88,7 @@ [P in T]: string; | ||
} | ||
/** | ||
* Function representing a 2-dimensional vector. | ||
* | ||
* @public | ||
*/ | ||
export interface Vector2Arrow<T extends string, S extends string> { | ||
@@ -52,4 +100,13 @@ readonly size: number; | ||
readonly index2: KeyIndex<S>; | ||
/** | ||
* Indicates this vector exists in the bundle. | ||
*/ | ||
exists(bundle: PrimitiveBundle): boolean; | ||
/** | ||
* Gets the field at the corresponding offset [key1, key2] | ||
*/ | ||
get(bundle: PrimitiveBundle, key1: T, key2: S): string; | ||
/** | ||
* Full mapping of all keys to the corresponding fields. | ||
*/ | ||
mapping(bundle: PrimitiveBundle): { | ||
@@ -56,0 +113,0 @@ [P in T]: { |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type ContextTransformFieldType = ('calendar-field' | 'currencyName' | 'day-format-except-narrow' | 'day-standalone-except-narrow' | 'era-abbr' | 'era-name' | 'keyValue' | 'languages' | 'month-format-except-narrow' | 'month-standalone-except-narrow' | 'number-spellout' | 'relative' | 'script' | 'typographicNames'); |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type CurrencyType = ('ADP' | 'AED' | 'AFA' | 'AFN' | 'ALK' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'AOK' | 'AON' | 'AOR' | 'ARA' | 'ARL' | 'ARM' | 'ARP' | 'ARS' | 'ATS' | 'AUD' | 'AWG' | 'AZM' | 'AZN' | 'BAD' | 'BAM' | 'BAN' | 'BBD' | 'BDT' | 'BEC' | 'BEF' | 'BEL' | 'BGL' | 'BGM' | 'BGN' | 'BGO' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOL' | 'BOP' | 'BOV' | 'BRB' | 'BRC' | 'BRE' | 'BRL' | 'BRN' | 'BRR' | 'BRZ' | 'BSD' | 'BTN' | 'BUK' | 'BWP' | 'BYB' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLE' | 'CLF' | 'CLP' | 'CNH' | 'CNX' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CSD' | 'CSK' | 'CUC' | 'CUP' | 'CVE' | 'CYP' | 'CZK' | 'DDM' | 'DEM' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'ECS' | 'ECV' | 'EEK' | 'EGP' | 'ERN' | 'ESA' | 'ESB' | 'ESP' | 'ETB' | 'EUR' | 'FIM' | 'FJD' | 'FKP' | 'FRF' | 'GBP' | 'GEK' | 'GEL' | 'GHC' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GNS' | 'GQE' | 'GRD' | 'GTQ' | 'GWE' | 'GWP' | 'GYD' | 'HKD' | 'HNL' | 'HRD' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'IEP' | 'ILP' | 'ILR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISJ' | 'ISK' | 'ITL' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRH' | 'KRO' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LTT' | 'LUC' | 'LUF' | 'LUL' | 'LVL' | 'LVR' | 'LYD' | 'MAD' | 'MAF' | 'MCF' | 'MDC' | 'MDL' | 'MGA' | 'MGF' | 'MKD' | 'MKN' | 'MLF' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MTL' | 'MTP' | 'MUR' | 'MVP' | 'MVR' | 'MWK' | 'MXN' | 'MXP' | 'MXV' | 'MYR' | 'MZE' | 'MZM' | 'MZN' | 'NAD' | 'NGN' | 'NIC' | 'NIO' | 'NLG' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEI' | 'PEN' | 'PES' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PLZ' | 'PTE' | 'PYG' | 'QAR' | 'RHD' | 'ROL' | 'RON' | 'RSD' | 'RUB' | 'RUR' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDD' | 'SDG' | 'SDP' | 'SEK' | 'SGD' | 'SHP' | 'SIT' | 'SKK' | 'SLL' | 'SOS' | 'SRD' | 'SRG' | 'SSP' | 'STD' | 'STN' | 'SUR' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJR' | 'TJS' | 'TMM' | 'TMT' | 'TND' | 'TOP' | 'TPE' | 'TRL' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UAK' | 'UGS' | 'UGX' | 'USD' | 'USN' | 'USS' | 'UYI' | 'UYP' | 'UYU' | 'UYW' | 'UZS' | 'VEB' | 'VEF' | 'VES' | 'VND' | 'VNN' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XEU' | 'XFO' | 'XFU' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XRE' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YDD' | 'YER' | 'YUD' | 'YUM' | 'YUN' | 'YUR' | 'ZAL' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZRN' | 'ZRZ' | 'ZWD' | 'ZWL' | 'ZWR'); |
@@ -0,3 +1,6 @@ | ||
/** @public */ | ||
export declare type LanguageIdType = ('aa' | 'ab' | 'ace' | 'ach' | 'ada' | 'ady' | 'ae' | 'aeb' | 'af' | 'afh' | 'agq' | 'ain' | 'ak' | 'akk' | 'akz' | 'ale' | 'aln' | 'alt' | 'am' | 'an' | 'ang' | 'anp' | 'ar' | 'ar-001' | 'arc' | 'arn' | 'aro' | 'arp' | 'arq' | 'ars' | 'arw' | 'ary' | 'arz' | 'as' | 'asa' | 'ase' | 'ast' | 'av' | 'avk' | 'awa' | 'ay' | 'az' | 'az-Arab' | 'ba' | 'bal' | 'ban' | 'bar' | 'bas' | 'bax' | 'bbc' | 'bbj' | 'be' | 'bej' | 'bem' | 'bew' | 'bez' | 'bfd' | 'bfq' | 'bg' | 'bgn' | 'bho' | 'bi' | 'bik' | 'bin' | 'bjn' | 'bkm' | 'bla' | 'bm' | 'bn' | 'bo' | 'bpy' | 'bqi' | 'br' | 'bra' | 'brh' | 'brx' | 'bs' | 'bss' | 'bua' | 'bug' | 'bum' | 'byn' | 'byv' | 'ca' | 'cad' | 'car' | 'cay' | 'cch' | 'ccp' | 'ce' | 'ceb' | 'cgg' | 'ch' | 'chb' | 'chg' | 'chk' | 'chm' | 'chn' | 'cho' | 'chp' | 'chr' | 'chy' | 'cic' | 'ckb' | 'co' | 'cop' | 'cps' | 'cr' | 'crh' | 'crs' | 'cs' | 'csb' | 'cu' | 'cv' | 'cy' | 'da' | 'dak' | 'dar' | 'dav' | 'de' | 'de-AT' | 'de-CH' | 'del' | 'den' | 'dgr' | 'din' | 'dje' | 'doi' | 'dsb' | 'dtp' | 'dua' | 'dum' | 'dv' | 'dyo' | 'dyu' | 'dz' | 'dzg' | 'ebu' | 'ee' | 'efi' | 'egl' | 'egy' | 'eka' | 'el' | 'elx' | 'en' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-US' | 'enm' | 'eo' | 'es' | 'es-419' | 'es-ES' | 'es-MX' | 'esu' | 'et' | 'eu' | 'ewo' | 'ext' | 'fa' | 'fa-AF' | 'fan' | 'fat' | 'ff' | 'fi' | 'fil' | 'fit' | 'fj' | 'fo' | 'fon' | 'fr' | 'fr-CA' | 'fr-CH' | 'frc' | 'frm' | 'fro' | 'frp' | 'frr' | 'frs' | 'fur' | 'fy' | 'ga' | 'gaa' | 'gag' | 'gan' | 'gay' | 'gba' | 'gbz' | 'gd' | 'gez' | 'gil' | 'gl' | 'glk' | 'gmh' | 'gn' | 'goh' | 'gom' | 'gon' | 'gor' | 'got' | 'grb' | 'grc' | 'gsw' | 'gu' | 'guc' | 'gur' | 'guz' | 'gv' | 'gwi' | 'ha' | 'hai' | 'hak' | 'haw' | 'he' | 'hi' | 'hif' | 'hil' | 'hit' | 'hmn' | 'ho' | 'hr' | 'hsb' | 'hsn' | 'ht' | 'hu' | 'hup' | 'hy' | 'hz' | 'ia' | 'iba' | 'ibb' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | 'ilo' | 'inh' | 'io' | 'is' | 'it' | 'iu' | 'izh' | 'ja' | 'jam' | 'jbo' | 'jgo' | 'jmc' | 'jpr' | 'jrb' | 'jut' | 'jv' | 'ka' | 'kaa' | 'kab' | 'kac' | 'kaj' | 'kam' | 'kaw' | 'kbd' | 'kbl' | 'kcg' | 'kde' | 'kea' | 'ken' | 'kfo' | 'kg' | 'kgp' | 'kha' | 'kho' | 'khq' | 'khw' | 'ki' | 'kiu' | 'kj' | 'kk' | 'kkj' | 'kl' | 'kln' | 'km' | 'kmb' | 'kn' | 'ko' | 'koi' | 'kok' | 'kos' | 'kpe' | 'kr' | 'krc' | 'kri' | 'krj' | 'krl' | 'kru' | 'ks' | 'ksb' | 'ksf' | 'ksh' | 'ku' | 'kum' | 'kut' | 'kv' | 'kw' | 'ky' | 'la' | 'lad' | 'lag' | 'lah' | 'lam' | 'lb' | 'lez' | 'lfn' | 'lg' | 'li' | 'lij' | 'liv' | 'lkt' | 'lmo' | 'ln' | 'lo' | 'lol' | 'lou' | 'loz' | 'lrc' | 'lt' | 'ltg' | 'lu' | 'lua' | 'lui' | 'lun' | 'luo' | 'lus' | 'luy' | 'lv' | 'lzh' | 'lzz' | 'mad' | 'maf' | 'mag' | 'mai' | 'mak' | 'man' | 'mas' | 'mde' | 'mdf' | 'mdr' | 'men' | 'mer' | 'mfe' | 'mg' | 'mga' | 'mgh' | 'mgo' | 'mh' | 'mi' | 'mic' | 'min' | 'mk' | 'ml' | 'mn' | 'mnc' | 'mni' | 'moh' | 'mos' | 'mr' | 'mrj' | 'ms' | 'mt' | 'mua' | 'mul' | 'mus' | 'mwl' | 'mwr' | 'mwv' | 'my' | 'mye' | 'myv' | 'mzn' | 'na' | 'nan' | 'nap' | 'naq' | 'nb' | 'nd' | 'nds' | 'nds-NL' | 'ne' | 'new' | 'ng' | 'nia' | 'niu' | 'njo' | 'nl' | 'nl-BE' | 'nmg' | 'nn' | 'nnh' | 'no' | 'nog' | 'non' | 'nov' | 'nqo' | 'nr' | 'nso' | 'nus' | 'nv' | 'nwc' | 'ny' | 'nym' | 'nyn' | 'nyo' | 'nzi' | 'oc' | 'oj' | 'om' | 'or' | 'os' | 'osa' | 'ota' | 'pa' | 'pag' | 'pal' | 'pam' | 'pap' | 'pau' | 'pcd' | 'pcm' | 'pdc' | 'pdt' | 'peo' | 'pfl' | 'phn' | 'pi' | 'pl' | 'pms' | 'pnt' | 'pon' | 'prg' | 'pro' | 'ps' | 'pt' | 'pt-BR' | 'pt-PT' | 'qu' | 'quc' | 'qug' | 'raj' | 'rap' | 'rar' | 'rgn' | 'rif' | 'rm' | 'rn' | 'ro' | 'ro-MD' | 'rof' | 'rom' | 'root' | 'rtm' | 'ru' | 'rue' | 'rug' | 'rup' | 'rw' | 'rwk' | 'sa' | 'sad' | 'sah' | 'sam' | 'saq' | 'sas' | 'sat' | 'saz' | 'sba' | 'sbp' | 'sc' | 'scn' | 'sco' | 'sd' | 'sdc' | 'sdh' | 'se' | 'see' | 'seh' | 'sei' | 'sel' | 'ses' | 'sg' | 'sga' | 'sgs' | 'sh' | 'shi' | 'shn' | 'shu' | 'si' | 'sid' | 'sk' | 'sl' | 'sli' | 'sly' | 'sm' | 'sma' | 'smj' | 'smn' | 'sms' | 'sn' | 'snk' | 'so' | 'sog' | 'sq' | 'sr' | 'sr-ME' | 'srn' | 'srr' | 'ss' | 'ssy' | 'st' | 'stq' | 'su' | 'suk' | 'sus' | 'sux' | 'sv' | 'sw' | 'sw-CD' | 'swb' | 'syc' | 'syr' | 'szl' | 'ta' | 'tcy' | 'te' | 'tem' | 'teo' | 'ter' | 'tet' | 'tg' | 'th' | 'ti' | 'tig' | 'tiv' | 'tk' | 'tkl' | 'tkr' | 'tl' | 'tlh' | 'tli' | 'tly' | 'tmh' | 'tn' | 'to' | 'tog' | 'tpi' | 'tr' | 'tru' | 'trv' | 'ts' | 'tsd' | 'tsi' | 'tt' | 'ttt' | 'tum' | 'tvl' | 'tw' | 'twq' | 'ty' | 'tyv' | 'tzm' | 'udm' | 'ug' | 'uga' | 'uk' | 'umb' | 'und' | 'ur' | 'uz' | 'vai' | 've' | 'vec' | 'vep' | 'vi' | 'vls' | 'vmf' | 'vo' | 'vot' | 'vro' | 'vun' | 'wa' | 'wae' | 'wal' | 'war' | 'was' | 'wbp' | 'wo' | 'wuu' | 'xal' | 'xh' | 'xmf' | 'xog' | 'yao' | 'yap' | 'yav' | 'ybb' | 'yi' | 'yo' | 'yrl' | 'yue' | 'za' | 'zap' | 'zbl' | 'zea' | 'zen' | 'zgh' | 'zh' | 'zh-Hans' | 'zh-Hant' | 'zu' | 'zun' | 'zxx' | 'zza'); | ||
/** @public */ | ||
export declare type ScriptIdType = ('Adlm' | 'Afak' | 'Aghb' | 'Ahom' | 'Arab' | 'Armi' | 'Armn' | 'Avst' | 'Bali' | 'Bamu' | 'Bass' | 'Batk' | 'Beng' | 'Bhks' | 'Blis' | 'Bopo' | 'Brah' | 'Brai' | 'Bugi' | 'Buhd' | 'Cakm' | 'Cans' | 'Cari' | 'Cham' | 'Cher' | 'Cirt' | 'Copt' | 'Cprt' | 'Cyrl' | 'Cyrs' | 'Deva' | 'Dogr' | 'Dsrt' | 'Dupl' | 'Egyd' | 'Egyh' | 'Egyp' | 'Elba' | 'Elym' | 'Ethi' | 'Geok' | 'Geor' | 'Glag' | 'Gong' | 'Gonm' | 'Goth' | 'Gran' | 'Grek' | 'Gujr' | 'Guru' | 'Hanb' | 'Hang' | 'Hani' | 'Hano' | 'Hans' | 'Hant' | 'Hatr' | 'Hebr' | 'Hira' | 'Hluw' | 'Hmng' | 'Hmnp' | 'Hrkt' | 'Hung' | 'Inds' | 'Ital' | 'Jamo' | 'Java' | 'Jpan' | 'Jurc' | 'Kali' | 'Kana' | 'Khar' | 'Khmr' | 'Khoj' | 'Knda' | 'Kore' | 'Kpel' | 'Kthi' | 'Lana' | 'Laoo' | 'Latf' | 'Latg' | 'Latn' | 'Lepc' | 'Limb' | 'Lina' | 'Linb' | 'Lisu' | 'Loma' | 'Lyci' | 'Lydi' | 'Mahj' | 'Maka' | 'Mand' | 'Mani' | 'Marc' | 'Maya' | 'Medf' | 'Mend' | 'Merc' | 'Mero' | 'Mlym' | 'Modi' | 'Mong' | 'Moon' | 'Mroo' | 'Mtei' | 'Mult' | 'Mymr' | 'Nand' | 'Narb' | 'Nbat' | 'Newa' | 'Nkgb' | 'Nkoo' | 'Nshu' | 'Ogam' | 'Olck' | 'Orkh' | 'Orya' | 'Osge' | 'Osma' | 'Palm' | 'Pauc' | 'Perm' | 'Phag' | 'Phli' | 'Phlp' | 'Phlv' | 'Phnx' | 'Plrd' | 'Prti' | 'Qaag' | 'Rjng' | 'Rohg' | 'Roro' | 'Runr' | 'Samr' | 'Sara' | 'Sarb' | 'Saur' | 'Sgnw' | 'Shaw' | 'Shrd' | 'Sidd' | 'Sind' | 'Sinh' | 'Sogd' | 'Sogo' | 'Sora' | 'Soyo' | 'Sund' | 'Sylo' | 'Syrc' | 'Syre' | 'Syrj' | 'Syrn' | 'Tagb' | 'Takr' | 'Tale' | 'Talu' | 'Taml' | 'Tang' | 'Tavt' | 'Telu' | 'Teng' | 'Tfng' | 'Tglg' | 'Thaa' | 'Thai' | 'Tibt' | 'Tirh' | 'Ugar' | 'Vaii' | 'Visp' | 'Wara' | 'Wcho' | 'Wole' | 'Xpeo' | 'Xsux' | 'Yiii' | 'Zanb' | 'Zinh' | 'Zmth' | 'Zsye' | 'Zsym' | 'Zxxx' | 'Zyyy' | 'Zzzz'); | ||
/** @public */ | ||
export declare type RegionIdType = ('001' | '002' | '003' | '005' | '009' | '011' | '013' | '014' | '015' | '017' | '018' | '019' | '021' | '029' | '030' | '034' | '035' | '039' | '053' | '054' | '057' | '061' | '142' | '143' | '145' | '150' | '151' | '154' | '155' | '202' | '419' | 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CP' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DG' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EA' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'EU' | 'EZ' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'IC' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'QO' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'UN' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XA' | 'XB' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | 'ZZ'); |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type MetaZoneType = 'Acre' | 'Afghanistan' | 'Africa_Central' | 'Africa_Eastern' | 'Africa_Southern' | 'Africa_Western' | 'Alaska' | 'Almaty' | 'Amazon' | 'America_Central' | 'America_Eastern' | 'America_Mountain' | 'America_Pacific' | 'Anadyr' | 'Apia' | 'Aqtau' | 'Aqtobe' | 'Arabian' | 'Argentina' | 'Argentina_Western' | 'Armenia' | 'Atlantic' | 'Australia_Central' | 'Australia_CentralWestern' | 'Australia_Eastern' | 'Australia_Western' | 'Azerbaijan' | 'Azores' | 'Bangladesh' | 'Bhutan' | 'Bolivia' | 'Brasilia' | 'Brunei' | 'Cape_Verde' | 'Casey' | 'Chamorro' | 'Chatham' | 'Chile' | 'China' | 'Choibalsan' | 'Christmas' | 'Cocos' | 'Colombia' | 'Cook' | 'Cuba' | 'Davis' | 'DumontDUrville' | 'East_Timor' | 'Easter' | 'Ecuador' | 'Europe_Central' | 'Europe_Eastern' | 'Europe_Further_Eastern' | 'Europe_Western' | 'Falkland' | 'Fiji' | 'French_Guiana' | 'French_Southern' | 'GMT' | 'Galapagos' | 'Gambier' | 'Georgia' | 'Gilbert_Islands' | 'Greenland_Eastern' | 'Greenland_Western' | 'Guam' | 'Gulf' | 'Guyana' | 'Hawaii_Aleutian' | 'Hong_Kong' | 'Hovd' | 'India' | 'Indian_Ocean' | 'Indochina' | 'Indonesia_Central' | 'Indonesia_Eastern' | 'Indonesia_Western' | 'Iran' | 'Irkutsk' | 'Israel' | 'Japan' | 'Kamchatka' | 'Kazakhstan_Eastern' | 'Kazakhstan_Western' | 'Korea' | 'Kosrae' | 'Krasnoyarsk' | 'Kyrgystan' | 'Lanka' | 'Line_Islands' | 'Lord_Howe' | 'Macau' | 'Macquarie' | 'Magadan' | 'Malaysia' | 'Maldives' | 'Marquesas' | 'Marshall_Islands' | 'Mauritius' | 'Mawson' | 'Mexico_Northwest' | 'Mexico_Pacific' | 'Mongolia' | 'Moscow' | 'Myanmar' | 'Nauru' | 'Nepal' | 'New_Caledonia' | 'New_Zealand' | 'Newfoundland' | 'Niue' | 'Norfolk' | 'Noronha' | 'North_Mariana' | 'Novosibirsk' | 'Omsk' | 'Pakistan' | 'Palau' | 'Papua_New_Guinea' | 'Paraguay' | 'Peru' | 'Philippines' | 'Phoenix_Islands' | 'Pierre_Miquelon' | 'Pitcairn' | 'Ponape' | 'Pyongyang' | 'Qyzylorda' | 'Reunion' | 'Rothera' | 'Sakhalin' | 'Samara' | 'Samoa' | 'Seychelles' | 'Singapore' | 'Solomon' | 'South_Georgia' | 'Suriname' | 'Syowa' | 'Tahiti' | 'Taipei' | 'Tajikistan' | 'Tokelau' | 'Tonga' | 'Truk' | 'Turkmenistan' | 'Tuvalu' | 'Uruguay' | 'Uzbekistan' | 'Vanuatu' | 'Venezuela' | 'Vladivostok' | 'Volgograd' | 'Vostok' | 'Wake' | 'Wallis' | 'Yakutsk' | 'Yekaterinburg'; |
@@ -0,2 +1,4 @@ | ||
/** @public */ | ||
export declare type UnitType = 'g-force' | 'meter-per-second-squared' | 'arc-minute' | 'arc-second' | 'degree' | 'radian' | 'revolution' | 'acre' | 'dunam' | 'hectare' | 'square-centimeter' | 'square-foot' | 'square-inch' | 'square-kilometer' | 'square-meter' | 'square-mile' | 'square-yard' | 'karat' | 'milligram-per-deciliter' | 'millimole-per-liter' | 'mole' | 'part-per-million' | 'percent' | 'permille' | 'permyriad' | 'liter-per-100kilometers' | 'liter-per-kilometer' | 'mile-per-gallon' | 'mile-per-gallon-imperial' | 'bit' | 'byte' | 'gigabit' | 'gigabyte' | 'kilobit' | 'kilobyte' | 'megabit' | 'megabyte' | 'petabyte' | 'terabit' | 'terabyte' | 'century' | 'day' | 'decade' | 'hour' | 'microsecond' | 'millisecond' | 'minute' | 'month' | 'nanosecond' | 'second' | 'week' | 'year' | 'ampere' | 'milliampere' | 'ohm' | 'volt' | 'british-thermal-unit' | 'calorie' | 'electronvolt' | 'foodcalorie' | 'joule' | 'kilocalorie' | 'kilojoule' | 'kilowatt-hour' | 'therm-us' | 'newton' | 'pound-force' | 'gigahertz' | 'hertz' | 'kilohertz' | 'megahertz' | 'dot-per-centimeter' | 'dot-per-inch' | 'em' | 'megapixel' | 'pixel' | 'pixel-per-centimeter' | 'pixel-per-inch' | 'astronomical-unit' | 'centimeter' | 'decimeter' | 'fathom' | 'foot' | 'furlong' | 'inch' | 'kilometer' | 'light-year' | 'meter' | 'micrometer' | 'mile' | 'mile-scandinavian' | 'millimeter' | 'nanometer' | 'nautical-mile' | 'parsec' | 'picometer' | 'point' | 'solar-radius' | 'yard' | 'lux' | 'solar-luminosity' | 'carat' | 'dalton' | 'earth-mass' | 'gram' | 'kilogram' | 'metric-ton' | 'microgram' | 'milligram' | 'ounce' | 'ounce-troy' | 'pound' | 'solar-mass' | 'stone' | 'ton' | 'gigawatt' | 'horsepower' | 'kilowatt' | 'megawatt' | 'milliwatt' | 'watt' | 'atmosphere' | 'bar' | 'hectopascal' | 'inch-hg' | 'kilopascal' | 'megapascal' | 'millibar' | 'millimeter-of-mercury' | 'pascal' | 'pound-per-square-inch' | 'kilometer-per-hour' | 'knot' | 'meter-per-second' | 'mile-per-hour' | 'celsius' | 'fahrenheit' | 'temperature' | 'kelvin' | 'newton-meter' | 'pound-foot' | 'acre-foot' | 'barrel' | 'bushel' | 'centiliter' | 'cubic-centimeter' | 'cubic-foot' | 'cubic-inch' | 'cubic-kilometer' | 'cubic-meter' | 'cubic-mile' | 'cubic-yard' | 'cup' | 'cup-metric' | 'deciliter' | 'fluid-ounce' | 'fluid-ounce-imperial' | 'gallon' | 'gallon-imperial' | 'hectoliter' | 'liter' | 'megaliter' | 'milliliter' | 'pint' | 'pint-metric' | 'quart' | 'tablespoon' | 'teaspoon'; | ||
/** @public */ | ||
export declare type UnitCategory = 'acceleration' | 'angle' | 'area' | 'concentr' | 'consumption' | 'digital' | 'duration' | 'electric' | 'energy' | 'force' | 'frequency' | 'graphics' | 'length' | 'light' | 'mass' | 'power' | 'pressure' | 'speed' | 'temperature' | 'torque' | 'volume'; |
/** | ||
* Very low-level access to strings in a bundle. Includes properties | ||
* needed to resolve locales within a pack. | ||
* | ||
* @public | ||
*/ | ||
@@ -5,0 +7,0 @@ export interface PrimitiveBundle { |
@@ -0,2 +1,10 @@ | ||
/** | ||
* Values 'h' and 'H' for hours have been unified to 'H' for uniqueness | ||
* | ||
* @public | ||
*/ | ||
export declare type DateTimePatternFieldType = 'y' | 'M' | 'd' | 'a' | 'H' | 'm' | 's'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateTimePatternField { | ||
@@ -11,3 +19,9 @@ YEAR = "y", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type DayPeriodType = 'noon' | 'midnight' | 'am' | 'pm' | 'morning1' | 'morning2' | 'afternoon1' | 'afternoon2' | 'evening1' | 'evening2' | 'night1' | 'night2'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DayPeriod { | ||
@@ -27,3 +41,9 @@ NOON = "noon", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type EraWidthType = 'names' | 'abbr' | 'narrow'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum EraWidth { | ||
@@ -34,3 +54,9 @@ NAMES = "names", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type FieldWidthType = 'abbreviated' | 'narrow' | 'short' | 'wide'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum FieldWidth { | ||
@@ -42,3 +68,9 @@ ABBREVIATED = "abbreviated", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type FormatWidthType = 'short' | 'medium' | 'long' | 'full'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum FormatWidth { | ||
@@ -50,3 +82,9 @@ SHORT = "short", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type QuarterType = '1' | '2' | '3' | '4'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum Quarter { | ||
@@ -58,3 +96,9 @@ FIRST = "1", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type WeekdayType = '1' | '2' | '3' | '4' | '5' | '6' | '7'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum Weekday { | ||
@@ -61,0 +105,0 @@ SUNDAY = "1", |
@@ -0,3 +1,13 @@ | ||
/** | ||
* TODO: may not need this | ||
* @public | ||
*/ | ||
export declare type DateFieldSymbol = 'G' | 'y' | 'Y' | 'u' | 'U' | 'r' | 'Q' | 'q' | 'M' | 'L' | 'l' | 'w' | 'W' | 'd' | 'D' | 'F' | 'g' | 'E' | 'e' | 'c' | 'a' | 'b' | 'B' | 'h' | 'H' | 'K' | 'k' | 'j' | 'J' | 'C' | 'm' | 's' | 'S' | 'A' | 'z' | 'Z' | 'O' | 'v' | 'V' | 'X' | 'x'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DateFieldType = 'era' | 'year' | 'quarter' | 'month' | 'week' | 'weekday' | 'weekdayOfMonth' | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'day' | 'dayperiod' | 'hour' | 'minute' | 'second' | 'zone'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateField { | ||
@@ -27,3 +37,9 @@ ERA = "era", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type DateFieldWidthType = 'short' | 'narrow' | 'wide'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateFieldWidth { | ||
@@ -34,3 +50,9 @@ SHORT = "short", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type RelativeTimeFieldType = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'hour' | 'minute' | 'second'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum RelativeTimeField { | ||
@@ -37,0 +59,0 @@ YEAR = "year", |
/** | ||
* Interface for extending the @phensley/cldr library. | ||
* Interface for extending the `@phensley/cldr` library. | ||
* | ||
* @internal | ||
*/ | ||
export interface Extension { | ||
} |
@@ -0,4 +1,16 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type CharacterOrderType = 'ttb' | 'btt'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ContextType = 'middle-of-text' | 'begin-sentence' | 'standalone' | 'ui-list-or-menu'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type LineOrderType = 'ltr' | 'rtl'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListPatternPositionType = 'start' | 'middle' | 'end' | 'two'; |
@@ -0,2 +1,8 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type PluralType = 'other' | 'zero' | 'one' | 'two' | 'few' | 'many'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AltType = 'none' | 'short' | 'narrow' | 'variant' | 'stand-alone' | 'long' | 'menu'; |
@@ -0,6 +1,26 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type CurrencySpacingPos = 'before' | 'after'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CurrencySpacingPattern = 'currencyMatch' | 'surroundingMatch' | 'insertBetween'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberSymbolType = 'currencyDecimal' | 'currencyGroup' | 'decimal' | 'exponential' | 'group' | 'infinity' | 'list' | 'minusSign' | 'nan' | 'perMille' | 'percentSign' | 'plusSign' | 'superscriptingExponent' | 'timeSeparator'; | ||
/** | ||
* These are all of the possible numbering systems we've implemented. Just decimal for now. | ||
* | ||
* @public | ||
*/ | ||
export declare type NumberSystemName = 'adlm' | 'ahom' | 'arab' | 'arabext' | 'bali' | 'beng' | 'bhks' | 'brah' | 'cakm' | 'cham' | 'deva' | 'fullwide' | 'gonm' | 'gujr' | 'guru' | 'hanidec' | 'hmng' | 'java' | 'kali' | 'khmr' | 'knda' | 'lana' | 'lanatham' | 'laoo' | 'latn' | 'lepc' | 'limb' | 'mathbold' | 'mathdbl' | 'mathmono' | 'mathsanb' | 'mathsans' | 'mlym' | 'modi' | 'mong' | 'mroo' | 'mtei' | 'mymr' | 'mymrshan' | 'mymrtlng' | 'newa' | 'nkoo' | 'olck' | 'orya' | 'osma' | 'saur' | 'shrd' | 'sind' | 'sinh' | 'sora' | 'sund' | 'takr' | 'talu' | 'tamldec' | 'telu' | 'thai' | 'tibt' | 'tirh' | 'vaii' | 'wara'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberSystemCategory = 'default' | 'native' | 'finance' | 'traditional'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberMiscPatternType = 'at-least' | 'at-most' | 'approx' | 'range'; |
@@ -12,2 +12,5 @@ import { DigitsArrow, FieldArrow, ScopeArrow, Vector1Arrow, Vector2Arrow } from './arrows'; | ||
import { AltType, PluralType } from './misc'; | ||
/** | ||
* @public | ||
*/ | ||
export interface CalendarFields { | ||
@@ -19,2 +22,5 @@ readonly weekdays: Vector2Arrow<string, string>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CalendarSchema { | ||
@@ -32,10 +38,25 @@ readonly eras: Vector2Arrow<EraWidthType, string>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface BuddhistSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface GregorianSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface JapaneseSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface PersianSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CurrenciesSchema { | ||
@@ -47,2 +68,5 @@ readonly displayName: Vector1Arrow<CurrencyType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RelativeTimeFields { | ||
@@ -57,2 +81,5 @@ readonly previous2: Vector1Arrow<RelativeTimeFieldType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RelativeTimes { | ||
@@ -63,2 +90,5 @@ readonly wide: RelativeTimeFields; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface DateFieldsSchema { | ||
@@ -68,2 +98,5 @@ readonly relativeTimes: RelativeTimes; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface LayoutSchema { | ||
@@ -73,2 +106,5 @@ readonly characterOrder: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ListPatternsSchema { | ||
@@ -82,14 +118,29 @@ readonly and: Vector1Arrow<ListPatternPositionType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ContextTransformsSchema { | ||
readonly contextTransforms: Vector1Arrow<ContextTransformFieldType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface LanguageNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, LanguageIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ScriptNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, ScriptIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RegionNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, RegionIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NamesSchema { | ||
@@ -100,2 +151,5 @@ readonly languages: LanguageNameInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CurrencyFormats { | ||
@@ -108,2 +162,5 @@ readonly standard: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface DecimalFormats { | ||
@@ -114,2 +171,5 @@ readonly standard: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NumberSystemInfo { | ||
@@ -123,2 +183,5 @@ readonly symbols: Vector1Arrow<NumberSymbolType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NumbersSchema { | ||
@@ -129,3 +192,9 @@ readonly minimumGroupingDigits: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type TimeZoneNameType = 'daylight' | 'generic' | 'standard'; | ||
/** | ||
* @public | ||
*/ | ||
export interface MetaZoneInfo { | ||
@@ -135,2 +204,5 @@ readonly short: Vector2Arrow<TimeZoneNameType, MetaZoneType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface TimeZoneSchema { | ||
@@ -144,2 +216,5 @@ readonly metaZones: MetaZoneInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface UnitInfo { | ||
@@ -152,2 +227,5 @@ readonly unitPattern: Vector2Arrow<PluralType, UnitType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface UnitsSchema { | ||
@@ -158,2 +236,5 @@ readonly long: UnitInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Schema { | ||
@@ -160,0 +241,0 @@ readonly Names: NamesSchema; |
import { PrimitiveBundle } from './bundle'; | ||
/** | ||
* Maps a name to a key index. | ||
* | ||
* @public | ||
*/ | ||
export interface KeyIndexMap { | ||
[name: string]: KeyIndex<string>; | ||
} | ||
/** | ||
* Indexes each string in an array to its offset in the array. | ||
* | ||
* @public | ||
*/ | ||
export interface KeyIndex<T extends string> { | ||
@@ -13,2 +23,7 @@ readonly index: { | ||
} | ||
/** | ||
* Function for fetching a single field. | ||
* | ||
* @public | ||
*/ | ||
export interface FieldArrow { | ||
@@ -18,2 +33,7 @@ readonly offset: number; | ||
} | ||
/** | ||
* Function for entering a new scope. | ||
* | ||
* @public | ||
*/ | ||
export interface ScopeArrow<T extends string, R> { | ||
@@ -25,2 +45,8 @@ readonly map: { | ||
} | ||
/** | ||
* Function for fetching a field based on plural category and | ||
* number of digits. | ||
* | ||
* @public | ||
*/ | ||
export interface DigitsArrow<T extends string> { | ||
@@ -31,4 +57,12 @@ readonly offset: number; | ||
readonly size2: number; | ||
/** | ||
* Gets the field for the given plural category and number of integer digits. | ||
*/ | ||
get(bundle: PrimitiveBundle, key: T, digits: number): [string, number]; | ||
} | ||
/** | ||
* Function representing a 1-dimensional vector. | ||
* | ||
* @public | ||
*/ | ||
export interface Vector1Arrow<T extends string> { | ||
@@ -38,4 +72,13 @@ readonly len: number; | ||
readonly index: KeyIndex<T>; | ||
/** | ||
* Indicates this vector exists in the bundle. | ||
*/ | ||
exists(bundle: PrimitiveBundle): boolean; | ||
/** | ||
* Gets the field at the corresponding offset of the given key. | ||
*/ | ||
get(bundle: PrimitiveBundle, key: T): string; | ||
/** | ||
* Full mapping of all keys to the corresponding fields. | ||
*/ | ||
mapping(bundle: PrimitiveBundle): { | ||
@@ -45,2 +88,7 @@ [P in T]: string; | ||
} | ||
/** | ||
* Function representing a 2-dimensional vector. | ||
* | ||
* @public | ||
*/ | ||
export interface Vector2Arrow<T extends string, S extends string> { | ||
@@ -52,4 +100,13 @@ readonly size: number; | ||
readonly index2: KeyIndex<S>; | ||
/** | ||
* Indicates this vector exists in the bundle. | ||
*/ | ||
exists(bundle: PrimitiveBundle): boolean; | ||
/** | ||
* Gets the field at the corresponding offset [key1, key2] | ||
*/ | ||
get(bundle: PrimitiveBundle, key1: T, key2: S): string; | ||
/** | ||
* Full mapping of all keys to the corresponding fields. | ||
*/ | ||
mapping(bundle: PrimitiveBundle): { | ||
@@ -56,0 +113,0 @@ [P in T]: { |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type ContextTransformFieldType = ('calendar-field' | 'currencyName' | 'day-format-except-narrow' | 'day-standalone-except-narrow' | 'era-abbr' | 'era-name' | 'keyValue' | 'languages' | 'month-format-except-narrow' | 'month-standalone-except-narrow' | 'number-spellout' | 'relative' | 'script' | 'typographicNames'); |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type CurrencyType = ('ADP' | 'AED' | 'AFA' | 'AFN' | 'ALK' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'AOK' | 'AON' | 'AOR' | 'ARA' | 'ARL' | 'ARM' | 'ARP' | 'ARS' | 'ATS' | 'AUD' | 'AWG' | 'AZM' | 'AZN' | 'BAD' | 'BAM' | 'BAN' | 'BBD' | 'BDT' | 'BEC' | 'BEF' | 'BEL' | 'BGL' | 'BGM' | 'BGN' | 'BGO' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOL' | 'BOP' | 'BOV' | 'BRB' | 'BRC' | 'BRE' | 'BRL' | 'BRN' | 'BRR' | 'BRZ' | 'BSD' | 'BTN' | 'BUK' | 'BWP' | 'BYB' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLE' | 'CLF' | 'CLP' | 'CNH' | 'CNX' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CSD' | 'CSK' | 'CUC' | 'CUP' | 'CVE' | 'CYP' | 'CZK' | 'DDM' | 'DEM' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'ECS' | 'ECV' | 'EEK' | 'EGP' | 'ERN' | 'ESA' | 'ESB' | 'ESP' | 'ETB' | 'EUR' | 'FIM' | 'FJD' | 'FKP' | 'FRF' | 'GBP' | 'GEK' | 'GEL' | 'GHC' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GNS' | 'GQE' | 'GRD' | 'GTQ' | 'GWE' | 'GWP' | 'GYD' | 'HKD' | 'HNL' | 'HRD' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'IEP' | 'ILP' | 'ILR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISJ' | 'ISK' | 'ITL' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRH' | 'KRO' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LTT' | 'LUC' | 'LUF' | 'LUL' | 'LVL' | 'LVR' | 'LYD' | 'MAD' | 'MAF' | 'MCF' | 'MDC' | 'MDL' | 'MGA' | 'MGF' | 'MKD' | 'MKN' | 'MLF' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MTL' | 'MTP' | 'MUR' | 'MVP' | 'MVR' | 'MWK' | 'MXN' | 'MXP' | 'MXV' | 'MYR' | 'MZE' | 'MZM' | 'MZN' | 'NAD' | 'NGN' | 'NIC' | 'NIO' | 'NLG' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEI' | 'PEN' | 'PES' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PLZ' | 'PTE' | 'PYG' | 'QAR' | 'RHD' | 'ROL' | 'RON' | 'RSD' | 'RUB' | 'RUR' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDD' | 'SDG' | 'SDP' | 'SEK' | 'SGD' | 'SHP' | 'SIT' | 'SKK' | 'SLL' | 'SOS' | 'SRD' | 'SRG' | 'SSP' | 'STD' | 'STN' | 'SUR' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJR' | 'TJS' | 'TMM' | 'TMT' | 'TND' | 'TOP' | 'TPE' | 'TRL' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UAK' | 'UGS' | 'UGX' | 'USD' | 'USN' | 'USS' | 'UYI' | 'UYP' | 'UYU' | 'UYW' | 'UZS' | 'VEB' | 'VEF' | 'VES' | 'VND' | 'VNN' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XEU' | 'XFO' | 'XFU' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XRE' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YDD' | 'YER' | 'YUD' | 'YUM' | 'YUN' | 'YUR' | 'ZAL' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZRN' | 'ZRZ' | 'ZWD' | 'ZWL' | 'ZWR'); |
@@ -0,3 +1,6 @@ | ||
/** @public */ | ||
export declare type LanguageIdType = ('aa' | 'ab' | 'ace' | 'ach' | 'ada' | 'ady' | 'ae' | 'aeb' | 'af' | 'afh' | 'agq' | 'ain' | 'ak' | 'akk' | 'akz' | 'ale' | 'aln' | 'alt' | 'am' | 'an' | 'ang' | 'anp' | 'ar' | 'ar-001' | 'arc' | 'arn' | 'aro' | 'arp' | 'arq' | 'ars' | 'arw' | 'ary' | 'arz' | 'as' | 'asa' | 'ase' | 'ast' | 'av' | 'avk' | 'awa' | 'ay' | 'az' | 'az-Arab' | 'ba' | 'bal' | 'ban' | 'bar' | 'bas' | 'bax' | 'bbc' | 'bbj' | 'be' | 'bej' | 'bem' | 'bew' | 'bez' | 'bfd' | 'bfq' | 'bg' | 'bgn' | 'bho' | 'bi' | 'bik' | 'bin' | 'bjn' | 'bkm' | 'bla' | 'bm' | 'bn' | 'bo' | 'bpy' | 'bqi' | 'br' | 'bra' | 'brh' | 'brx' | 'bs' | 'bss' | 'bua' | 'bug' | 'bum' | 'byn' | 'byv' | 'ca' | 'cad' | 'car' | 'cay' | 'cch' | 'ccp' | 'ce' | 'ceb' | 'cgg' | 'ch' | 'chb' | 'chg' | 'chk' | 'chm' | 'chn' | 'cho' | 'chp' | 'chr' | 'chy' | 'cic' | 'ckb' | 'co' | 'cop' | 'cps' | 'cr' | 'crh' | 'crs' | 'cs' | 'csb' | 'cu' | 'cv' | 'cy' | 'da' | 'dak' | 'dar' | 'dav' | 'de' | 'de-AT' | 'de-CH' | 'del' | 'den' | 'dgr' | 'din' | 'dje' | 'doi' | 'dsb' | 'dtp' | 'dua' | 'dum' | 'dv' | 'dyo' | 'dyu' | 'dz' | 'dzg' | 'ebu' | 'ee' | 'efi' | 'egl' | 'egy' | 'eka' | 'el' | 'elx' | 'en' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-US' | 'enm' | 'eo' | 'es' | 'es-419' | 'es-ES' | 'es-MX' | 'esu' | 'et' | 'eu' | 'ewo' | 'ext' | 'fa' | 'fa-AF' | 'fan' | 'fat' | 'ff' | 'fi' | 'fil' | 'fit' | 'fj' | 'fo' | 'fon' | 'fr' | 'fr-CA' | 'fr-CH' | 'frc' | 'frm' | 'fro' | 'frp' | 'frr' | 'frs' | 'fur' | 'fy' | 'ga' | 'gaa' | 'gag' | 'gan' | 'gay' | 'gba' | 'gbz' | 'gd' | 'gez' | 'gil' | 'gl' | 'glk' | 'gmh' | 'gn' | 'goh' | 'gom' | 'gon' | 'gor' | 'got' | 'grb' | 'grc' | 'gsw' | 'gu' | 'guc' | 'gur' | 'guz' | 'gv' | 'gwi' | 'ha' | 'hai' | 'hak' | 'haw' | 'he' | 'hi' | 'hif' | 'hil' | 'hit' | 'hmn' | 'ho' | 'hr' | 'hsb' | 'hsn' | 'ht' | 'hu' | 'hup' | 'hy' | 'hz' | 'ia' | 'iba' | 'ibb' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | 'ilo' | 'inh' | 'io' | 'is' | 'it' | 'iu' | 'izh' | 'ja' | 'jam' | 'jbo' | 'jgo' | 'jmc' | 'jpr' | 'jrb' | 'jut' | 'jv' | 'ka' | 'kaa' | 'kab' | 'kac' | 'kaj' | 'kam' | 'kaw' | 'kbd' | 'kbl' | 'kcg' | 'kde' | 'kea' | 'ken' | 'kfo' | 'kg' | 'kgp' | 'kha' | 'kho' | 'khq' | 'khw' | 'ki' | 'kiu' | 'kj' | 'kk' | 'kkj' | 'kl' | 'kln' | 'km' | 'kmb' | 'kn' | 'ko' | 'koi' | 'kok' | 'kos' | 'kpe' | 'kr' | 'krc' | 'kri' | 'krj' | 'krl' | 'kru' | 'ks' | 'ksb' | 'ksf' | 'ksh' | 'ku' | 'kum' | 'kut' | 'kv' | 'kw' | 'ky' | 'la' | 'lad' | 'lag' | 'lah' | 'lam' | 'lb' | 'lez' | 'lfn' | 'lg' | 'li' | 'lij' | 'liv' | 'lkt' | 'lmo' | 'ln' | 'lo' | 'lol' | 'lou' | 'loz' | 'lrc' | 'lt' | 'ltg' | 'lu' | 'lua' | 'lui' | 'lun' | 'luo' | 'lus' | 'luy' | 'lv' | 'lzh' | 'lzz' | 'mad' | 'maf' | 'mag' | 'mai' | 'mak' | 'man' | 'mas' | 'mde' | 'mdf' | 'mdr' | 'men' | 'mer' | 'mfe' | 'mg' | 'mga' | 'mgh' | 'mgo' | 'mh' | 'mi' | 'mic' | 'min' | 'mk' | 'ml' | 'mn' | 'mnc' | 'mni' | 'moh' | 'mos' | 'mr' | 'mrj' | 'ms' | 'mt' | 'mua' | 'mul' | 'mus' | 'mwl' | 'mwr' | 'mwv' | 'my' | 'mye' | 'myv' | 'mzn' | 'na' | 'nan' | 'nap' | 'naq' | 'nb' | 'nd' | 'nds' | 'nds-NL' | 'ne' | 'new' | 'ng' | 'nia' | 'niu' | 'njo' | 'nl' | 'nl-BE' | 'nmg' | 'nn' | 'nnh' | 'no' | 'nog' | 'non' | 'nov' | 'nqo' | 'nr' | 'nso' | 'nus' | 'nv' | 'nwc' | 'ny' | 'nym' | 'nyn' | 'nyo' | 'nzi' | 'oc' | 'oj' | 'om' | 'or' | 'os' | 'osa' | 'ota' | 'pa' | 'pag' | 'pal' | 'pam' | 'pap' | 'pau' | 'pcd' | 'pcm' | 'pdc' | 'pdt' | 'peo' | 'pfl' | 'phn' | 'pi' | 'pl' | 'pms' | 'pnt' | 'pon' | 'prg' | 'pro' | 'ps' | 'pt' | 'pt-BR' | 'pt-PT' | 'qu' | 'quc' | 'qug' | 'raj' | 'rap' | 'rar' | 'rgn' | 'rif' | 'rm' | 'rn' | 'ro' | 'ro-MD' | 'rof' | 'rom' | 'root' | 'rtm' | 'ru' | 'rue' | 'rug' | 'rup' | 'rw' | 'rwk' | 'sa' | 'sad' | 'sah' | 'sam' | 'saq' | 'sas' | 'sat' | 'saz' | 'sba' | 'sbp' | 'sc' | 'scn' | 'sco' | 'sd' | 'sdc' | 'sdh' | 'se' | 'see' | 'seh' | 'sei' | 'sel' | 'ses' | 'sg' | 'sga' | 'sgs' | 'sh' | 'shi' | 'shn' | 'shu' | 'si' | 'sid' | 'sk' | 'sl' | 'sli' | 'sly' | 'sm' | 'sma' | 'smj' | 'smn' | 'sms' | 'sn' | 'snk' | 'so' | 'sog' | 'sq' | 'sr' | 'sr-ME' | 'srn' | 'srr' | 'ss' | 'ssy' | 'st' | 'stq' | 'su' | 'suk' | 'sus' | 'sux' | 'sv' | 'sw' | 'sw-CD' | 'swb' | 'syc' | 'syr' | 'szl' | 'ta' | 'tcy' | 'te' | 'tem' | 'teo' | 'ter' | 'tet' | 'tg' | 'th' | 'ti' | 'tig' | 'tiv' | 'tk' | 'tkl' | 'tkr' | 'tl' | 'tlh' | 'tli' | 'tly' | 'tmh' | 'tn' | 'to' | 'tog' | 'tpi' | 'tr' | 'tru' | 'trv' | 'ts' | 'tsd' | 'tsi' | 'tt' | 'ttt' | 'tum' | 'tvl' | 'tw' | 'twq' | 'ty' | 'tyv' | 'tzm' | 'udm' | 'ug' | 'uga' | 'uk' | 'umb' | 'und' | 'ur' | 'uz' | 'vai' | 've' | 'vec' | 'vep' | 'vi' | 'vls' | 'vmf' | 'vo' | 'vot' | 'vro' | 'vun' | 'wa' | 'wae' | 'wal' | 'war' | 'was' | 'wbp' | 'wo' | 'wuu' | 'xal' | 'xh' | 'xmf' | 'xog' | 'yao' | 'yap' | 'yav' | 'ybb' | 'yi' | 'yo' | 'yrl' | 'yue' | 'za' | 'zap' | 'zbl' | 'zea' | 'zen' | 'zgh' | 'zh' | 'zh-Hans' | 'zh-Hant' | 'zu' | 'zun' | 'zxx' | 'zza'); | ||
/** @public */ | ||
export declare type ScriptIdType = ('Adlm' | 'Afak' | 'Aghb' | 'Ahom' | 'Arab' | 'Armi' | 'Armn' | 'Avst' | 'Bali' | 'Bamu' | 'Bass' | 'Batk' | 'Beng' | 'Bhks' | 'Blis' | 'Bopo' | 'Brah' | 'Brai' | 'Bugi' | 'Buhd' | 'Cakm' | 'Cans' | 'Cari' | 'Cham' | 'Cher' | 'Cirt' | 'Copt' | 'Cprt' | 'Cyrl' | 'Cyrs' | 'Deva' | 'Dogr' | 'Dsrt' | 'Dupl' | 'Egyd' | 'Egyh' | 'Egyp' | 'Elba' | 'Elym' | 'Ethi' | 'Geok' | 'Geor' | 'Glag' | 'Gong' | 'Gonm' | 'Goth' | 'Gran' | 'Grek' | 'Gujr' | 'Guru' | 'Hanb' | 'Hang' | 'Hani' | 'Hano' | 'Hans' | 'Hant' | 'Hatr' | 'Hebr' | 'Hira' | 'Hluw' | 'Hmng' | 'Hmnp' | 'Hrkt' | 'Hung' | 'Inds' | 'Ital' | 'Jamo' | 'Java' | 'Jpan' | 'Jurc' | 'Kali' | 'Kana' | 'Khar' | 'Khmr' | 'Khoj' | 'Knda' | 'Kore' | 'Kpel' | 'Kthi' | 'Lana' | 'Laoo' | 'Latf' | 'Latg' | 'Latn' | 'Lepc' | 'Limb' | 'Lina' | 'Linb' | 'Lisu' | 'Loma' | 'Lyci' | 'Lydi' | 'Mahj' | 'Maka' | 'Mand' | 'Mani' | 'Marc' | 'Maya' | 'Medf' | 'Mend' | 'Merc' | 'Mero' | 'Mlym' | 'Modi' | 'Mong' | 'Moon' | 'Mroo' | 'Mtei' | 'Mult' | 'Mymr' | 'Nand' | 'Narb' | 'Nbat' | 'Newa' | 'Nkgb' | 'Nkoo' | 'Nshu' | 'Ogam' | 'Olck' | 'Orkh' | 'Orya' | 'Osge' | 'Osma' | 'Palm' | 'Pauc' | 'Perm' | 'Phag' | 'Phli' | 'Phlp' | 'Phlv' | 'Phnx' | 'Plrd' | 'Prti' | 'Qaag' | 'Rjng' | 'Rohg' | 'Roro' | 'Runr' | 'Samr' | 'Sara' | 'Sarb' | 'Saur' | 'Sgnw' | 'Shaw' | 'Shrd' | 'Sidd' | 'Sind' | 'Sinh' | 'Sogd' | 'Sogo' | 'Sora' | 'Soyo' | 'Sund' | 'Sylo' | 'Syrc' | 'Syre' | 'Syrj' | 'Syrn' | 'Tagb' | 'Takr' | 'Tale' | 'Talu' | 'Taml' | 'Tang' | 'Tavt' | 'Telu' | 'Teng' | 'Tfng' | 'Tglg' | 'Thaa' | 'Thai' | 'Tibt' | 'Tirh' | 'Ugar' | 'Vaii' | 'Visp' | 'Wara' | 'Wcho' | 'Wole' | 'Xpeo' | 'Xsux' | 'Yiii' | 'Zanb' | 'Zinh' | 'Zmth' | 'Zsye' | 'Zsym' | 'Zxxx' | 'Zyyy' | 'Zzzz'); | ||
/** @public */ | ||
export declare type RegionIdType = ('001' | '002' | '003' | '005' | '009' | '011' | '013' | '014' | '015' | '017' | '018' | '019' | '021' | '029' | '030' | '034' | '035' | '039' | '053' | '054' | '057' | '061' | '142' | '143' | '145' | '150' | '151' | '154' | '155' | '202' | '419' | 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CP' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DG' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EA' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'EU' | 'EZ' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'IC' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'QO' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'UN' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XA' | 'XB' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | 'ZZ'); |
@@ -0,1 +1,2 @@ | ||
/** @public */ | ||
export declare type MetaZoneType = 'Acre' | 'Afghanistan' | 'Africa_Central' | 'Africa_Eastern' | 'Africa_Southern' | 'Africa_Western' | 'Alaska' | 'Almaty' | 'Amazon' | 'America_Central' | 'America_Eastern' | 'America_Mountain' | 'America_Pacific' | 'Anadyr' | 'Apia' | 'Aqtau' | 'Aqtobe' | 'Arabian' | 'Argentina' | 'Argentina_Western' | 'Armenia' | 'Atlantic' | 'Australia_Central' | 'Australia_CentralWestern' | 'Australia_Eastern' | 'Australia_Western' | 'Azerbaijan' | 'Azores' | 'Bangladesh' | 'Bhutan' | 'Bolivia' | 'Brasilia' | 'Brunei' | 'Cape_Verde' | 'Casey' | 'Chamorro' | 'Chatham' | 'Chile' | 'China' | 'Choibalsan' | 'Christmas' | 'Cocos' | 'Colombia' | 'Cook' | 'Cuba' | 'Davis' | 'DumontDUrville' | 'East_Timor' | 'Easter' | 'Ecuador' | 'Europe_Central' | 'Europe_Eastern' | 'Europe_Further_Eastern' | 'Europe_Western' | 'Falkland' | 'Fiji' | 'French_Guiana' | 'French_Southern' | 'GMT' | 'Galapagos' | 'Gambier' | 'Georgia' | 'Gilbert_Islands' | 'Greenland_Eastern' | 'Greenland_Western' | 'Guam' | 'Gulf' | 'Guyana' | 'Hawaii_Aleutian' | 'Hong_Kong' | 'Hovd' | 'India' | 'Indian_Ocean' | 'Indochina' | 'Indonesia_Central' | 'Indonesia_Eastern' | 'Indonesia_Western' | 'Iran' | 'Irkutsk' | 'Israel' | 'Japan' | 'Kamchatka' | 'Kazakhstan_Eastern' | 'Kazakhstan_Western' | 'Korea' | 'Kosrae' | 'Krasnoyarsk' | 'Kyrgystan' | 'Lanka' | 'Line_Islands' | 'Lord_Howe' | 'Macau' | 'Macquarie' | 'Magadan' | 'Malaysia' | 'Maldives' | 'Marquesas' | 'Marshall_Islands' | 'Mauritius' | 'Mawson' | 'Mexico_Northwest' | 'Mexico_Pacific' | 'Mongolia' | 'Moscow' | 'Myanmar' | 'Nauru' | 'Nepal' | 'New_Caledonia' | 'New_Zealand' | 'Newfoundland' | 'Niue' | 'Norfolk' | 'Noronha' | 'North_Mariana' | 'Novosibirsk' | 'Omsk' | 'Pakistan' | 'Palau' | 'Papua_New_Guinea' | 'Paraguay' | 'Peru' | 'Philippines' | 'Phoenix_Islands' | 'Pierre_Miquelon' | 'Pitcairn' | 'Ponape' | 'Pyongyang' | 'Qyzylorda' | 'Reunion' | 'Rothera' | 'Sakhalin' | 'Samara' | 'Samoa' | 'Seychelles' | 'Singapore' | 'Solomon' | 'South_Georgia' | 'Suriname' | 'Syowa' | 'Tahiti' | 'Taipei' | 'Tajikistan' | 'Tokelau' | 'Tonga' | 'Truk' | 'Turkmenistan' | 'Tuvalu' | 'Uruguay' | 'Uzbekistan' | 'Vanuatu' | 'Venezuela' | 'Vladivostok' | 'Volgograd' | 'Vostok' | 'Wake' | 'Wallis' | 'Yakutsk' | 'Yekaterinburg'; |
@@ -0,2 +1,4 @@ | ||
/** @public */ | ||
export declare type UnitType = 'g-force' | 'meter-per-second-squared' | 'arc-minute' | 'arc-second' | 'degree' | 'radian' | 'revolution' | 'acre' | 'dunam' | 'hectare' | 'square-centimeter' | 'square-foot' | 'square-inch' | 'square-kilometer' | 'square-meter' | 'square-mile' | 'square-yard' | 'karat' | 'milligram-per-deciliter' | 'millimole-per-liter' | 'mole' | 'part-per-million' | 'percent' | 'permille' | 'permyriad' | 'liter-per-100kilometers' | 'liter-per-kilometer' | 'mile-per-gallon' | 'mile-per-gallon-imperial' | 'bit' | 'byte' | 'gigabit' | 'gigabyte' | 'kilobit' | 'kilobyte' | 'megabit' | 'megabyte' | 'petabyte' | 'terabit' | 'terabyte' | 'century' | 'day' | 'decade' | 'hour' | 'microsecond' | 'millisecond' | 'minute' | 'month' | 'nanosecond' | 'second' | 'week' | 'year' | 'ampere' | 'milliampere' | 'ohm' | 'volt' | 'british-thermal-unit' | 'calorie' | 'electronvolt' | 'foodcalorie' | 'joule' | 'kilocalorie' | 'kilojoule' | 'kilowatt-hour' | 'therm-us' | 'newton' | 'pound-force' | 'gigahertz' | 'hertz' | 'kilohertz' | 'megahertz' | 'dot-per-centimeter' | 'dot-per-inch' | 'em' | 'megapixel' | 'pixel' | 'pixel-per-centimeter' | 'pixel-per-inch' | 'astronomical-unit' | 'centimeter' | 'decimeter' | 'fathom' | 'foot' | 'furlong' | 'inch' | 'kilometer' | 'light-year' | 'meter' | 'micrometer' | 'mile' | 'mile-scandinavian' | 'millimeter' | 'nanometer' | 'nautical-mile' | 'parsec' | 'picometer' | 'point' | 'solar-radius' | 'yard' | 'lux' | 'solar-luminosity' | 'carat' | 'dalton' | 'earth-mass' | 'gram' | 'kilogram' | 'metric-ton' | 'microgram' | 'milligram' | 'ounce' | 'ounce-troy' | 'pound' | 'solar-mass' | 'stone' | 'ton' | 'gigawatt' | 'horsepower' | 'kilowatt' | 'megawatt' | 'milliwatt' | 'watt' | 'atmosphere' | 'bar' | 'hectopascal' | 'inch-hg' | 'kilopascal' | 'megapascal' | 'millibar' | 'millimeter-of-mercury' | 'pascal' | 'pound-per-square-inch' | 'kilometer-per-hour' | 'knot' | 'meter-per-second' | 'mile-per-hour' | 'celsius' | 'fahrenheit' | 'temperature' | 'kelvin' | 'newton-meter' | 'pound-foot' | 'acre-foot' | 'barrel' | 'bushel' | 'centiliter' | 'cubic-centimeter' | 'cubic-foot' | 'cubic-inch' | 'cubic-kilometer' | 'cubic-meter' | 'cubic-mile' | 'cubic-yard' | 'cup' | 'cup-metric' | 'deciliter' | 'fluid-ounce' | 'fluid-ounce-imperial' | 'gallon' | 'gallon-imperial' | 'hectoliter' | 'liter' | 'megaliter' | 'milliliter' | 'pint' | 'pint-metric' | 'quart' | 'tablespoon' | 'teaspoon'; | ||
/** @public */ | ||
export declare type UnitCategory = 'acceleration' | 'angle' | 'area' | 'concentr' | 'consumption' | 'digital' | 'duration' | 'electric' | 'energy' | 'force' | 'frequency' | 'graphics' | 'length' | 'light' | 'mass' | 'power' | 'pressure' | 'speed' | 'temperature' | 'torque' | 'volume'; |
/** | ||
* Very low-level access to strings in a bundle. Includes properties | ||
* needed to resolve locales within a pack. | ||
* | ||
* @public | ||
*/ | ||
@@ -5,0 +7,0 @@ export interface PrimitiveBundle { |
@@ -0,2 +1,10 @@ | ||
/** | ||
* Values 'h' and 'H' for hours have been unified to 'H' for uniqueness | ||
* | ||
* @public | ||
*/ | ||
export declare type DateTimePatternFieldType = 'y' | 'M' | 'd' | 'a' | 'H' | 'm' | 's'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateTimePatternField { | ||
@@ -11,3 +19,9 @@ YEAR = "y", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type DayPeriodType = 'noon' | 'midnight' | 'am' | 'pm' | 'morning1' | 'morning2' | 'afternoon1' | 'afternoon2' | 'evening1' | 'evening2' | 'night1' | 'night2'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DayPeriod { | ||
@@ -27,3 +41,9 @@ NOON = "noon", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type EraWidthType = 'names' | 'abbr' | 'narrow'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum EraWidth { | ||
@@ -34,3 +54,9 @@ NAMES = "names", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type FieldWidthType = 'abbreviated' | 'narrow' | 'short' | 'wide'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum FieldWidth { | ||
@@ -42,3 +68,9 @@ ABBREVIATED = "abbreviated", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type FormatWidthType = 'short' | 'medium' | 'long' | 'full'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum FormatWidth { | ||
@@ -50,3 +82,9 @@ SHORT = "short", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type QuarterType = '1' | '2' | '3' | '4'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum Quarter { | ||
@@ -58,3 +96,9 @@ FIRST = "1", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type WeekdayType = '1' | '2' | '3' | '4' | '5' | '6' | '7'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum Weekday { | ||
@@ -61,0 +105,0 @@ SUNDAY = "1", |
@@ -0,3 +1,13 @@ | ||
/** | ||
* TODO: may not need this | ||
* @public | ||
*/ | ||
export declare type DateFieldSymbol = 'G' | 'y' | 'Y' | 'u' | 'U' | 'r' | 'Q' | 'q' | 'M' | 'L' | 'l' | 'w' | 'W' | 'd' | 'D' | 'F' | 'g' | 'E' | 'e' | 'c' | 'a' | 'b' | 'B' | 'h' | 'H' | 'K' | 'k' | 'j' | 'J' | 'C' | 'm' | 's' | 'S' | 'A' | 'z' | 'Z' | 'O' | 'v' | 'V' | 'X' | 'x'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DateFieldType = 'era' | 'year' | 'quarter' | 'month' | 'week' | 'weekday' | 'weekdayOfMonth' | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'day' | 'dayperiod' | 'hour' | 'minute' | 'second' | 'zone'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateField { | ||
@@ -27,3 +37,9 @@ ERA = "era", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type DateFieldWidthType = 'short' | 'narrow' | 'wide'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum DateFieldWidth { | ||
@@ -34,3 +50,9 @@ SHORT = "short", | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type RelativeTimeFieldType = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'hour' | 'minute' | 'second'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const enum RelativeTimeField { | ||
@@ -37,0 +59,0 @@ YEAR = "year", |
/** | ||
* Interface for extending the @phensley/cldr library. | ||
* Interface for extending the `@phensley/cldr` library. | ||
* | ||
* @internal | ||
*/ | ||
export interface Extension { | ||
} |
@@ -0,4 +1,16 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type CharacterOrderType = 'ttb' | 'btt'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ContextType = 'middle-of-text' | 'begin-sentence' | 'standalone' | 'ui-list-or-menu'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type LineOrderType = 'ltr' | 'rtl'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListPatternPositionType = 'start' | 'middle' | 'end' | 'two'; |
@@ -0,2 +1,8 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type PluralType = 'other' | 'zero' | 'one' | 'two' | 'few' | 'many'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AltType = 'none' | 'short' | 'narrow' | 'variant' | 'stand-alone' | 'long' | 'menu'; |
@@ -0,6 +1,26 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type CurrencySpacingPos = 'before' | 'after'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CurrencySpacingPattern = 'currencyMatch' | 'surroundingMatch' | 'insertBetween'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberSymbolType = 'currencyDecimal' | 'currencyGroup' | 'decimal' | 'exponential' | 'group' | 'infinity' | 'list' | 'minusSign' | 'nan' | 'perMille' | 'percentSign' | 'plusSign' | 'superscriptingExponent' | 'timeSeparator'; | ||
/** | ||
* These are all of the possible numbering systems we've implemented. Just decimal for now. | ||
* | ||
* @public | ||
*/ | ||
export declare type NumberSystemName = 'adlm' | 'ahom' | 'arab' | 'arabext' | 'bali' | 'beng' | 'bhks' | 'brah' | 'cakm' | 'cham' | 'deva' | 'fullwide' | 'gonm' | 'gujr' | 'guru' | 'hanidec' | 'hmng' | 'java' | 'kali' | 'khmr' | 'knda' | 'lana' | 'lanatham' | 'laoo' | 'latn' | 'lepc' | 'limb' | 'mathbold' | 'mathdbl' | 'mathmono' | 'mathsanb' | 'mathsans' | 'mlym' | 'modi' | 'mong' | 'mroo' | 'mtei' | 'mymr' | 'mymrshan' | 'mymrtlng' | 'newa' | 'nkoo' | 'olck' | 'orya' | 'osma' | 'saur' | 'shrd' | 'sind' | 'sinh' | 'sora' | 'sund' | 'takr' | 'talu' | 'tamldec' | 'telu' | 'thai' | 'tibt' | 'tirh' | 'vaii' | 'wara'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberSystemCategory = 'default' | 'native' | 'finance' | 'traditional'; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NumberMiscPatternType = 'at-least' | 'at-most' | 'approx' | 'range'; |
@@ -12,2 +12,5 @@ import { DigitsArrow, FieldArrow, ScopeArrow, Vector1Arrow, Vector2Arrow } from './arrows'; | ||
import { AltType, PluralType } from './misc'; | ||
/** | ||
* @public | ||
*/ | ||
export interface CalendarFields { | ||
@@ -19,2 +22,5 @@ readonly weekdays: Vector2Arrow<string, string>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CalendarSchema { | ||
@@ -32,10 +38,25 @@ readonly eras: Vector2Arrow<EraWidthType, string>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface BuddhistSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface GregorianSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface JapaneseSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface PersianSchema extends CalendarSchema { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CurrenciesSchema { | ||
@@ -47,2 +68,5 @@ readonly displayName: Vector1Arrow<CurrencyType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RelativeTimeFields { | ||
@@ -57,2 +81,5 @@ readonly previous2: Vector1Arrow<RelativeTimeFieldType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RelativeTimes { | ||
@@ -63,2 +90,5 @@ readonly wide: RelativeTimeFields; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface DateFieldsSchema { | ||
@@ -68,2 +98,5 @@ readonly relativeTimes: RelativeTimes; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface LayoutSchema { | ||
@@ -73,2 +106,5 @@ readonly characterOrder: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ListPatternsSchema { | ||
@@ -82,14 +118,29 @@ readonly and: Vector1Arrow<ListPatternPositionType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ContextTransformsSchema { | ||
readonly contextTransforms: Vector1Arrow<ContextTransformFieldType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface LanguageNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, LanguageIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ScriptNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, ScriptIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface RegionNameInfo { | ||
readonly displayName: Vector2Arrow<AltType, RegionIdType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NamesSchema { | ||
@@ -100,2 +151,5 @@ readonly languages: LanguageNameInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface CurrencyFormats { | ||
@@ -108,2 +162,5 @@ readonly standard: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface DecimalFormats { | ||
@@ -114,2 +171,5 @@ readonly standard: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NumberSystemInfo { | ||
@@ -123,2 +183,5 @@ readonly symbols: Vector1Arrow<NumberSymbolType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface NumbersSchema { | ||
@@ -129,3 +192,9 @@ readonly minimumGroupingDigits: FieldArrow; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type TimeZoneNameType = 'daylight' | 'generic' | 'standard'; | ||
/** | ||
* @public | ||
*/ | ||
export interface MetaZoneInfo { | ||
@@ -135,2 +204,5 @@ readonly short: Vector2Arrow<TimeZoneNameType, MetaZoneType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface TimeZoneSchema { | ||
@@ -144,2 +216,5 @@ readonly metaZones: MetaZoneInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface UnitInfo { | ||
@@ -152,2 +227,5 @@ readonly unitPattern: Vector2Arrow<PluralType, UnitType>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface UnitsSchema { | ||
@@ -158,2 +236,5 @@ readonly long: UnitInfo; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Schema { | ||
@@ -160,0 +241,0 @@ readonly Names: NamesSchema; |
{ | ||
"name": "@phensley/cldr-types", | ||
"version": "0.26.0", | ||
"version": "1.0.0", | ||
"description": "Types shared among packages in the @phensley/cldr library", | ||
@@ -19,2 +19,4 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"api": "api-extractor run -c ./etc/api-extractor.json --verbose", | ||
"api:local": "yarn api -l", | ||
"bench:off": "ts-node __benchmarks__/", | ||
@@ -38,6 +40,7 @@ "build": "yarn build:cj && yarn build:es", | ||
"dependencies": { | ||
"tslib": "1.10.x" | ||
"tslib": "1.11.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "24.0.22", | ||
"@microsoft/api-extractor": "^7.7.8", | ||
"@types/jest": "25.1.3", | ||
"@types/node": "^10.14.10", | ||
@@ -47,8 +50,8 @@ "beautify-benchmark": "^0.2.4", | ||
"chalk": "^2.3.2", | ||
"jest": "24.9.0", | ||
"jest": "25.1.0", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.0.2", | ||
"ts-jest": "25.2.1", | ||
"tslint": "^5.18.0", | ||
"tslint-no-circular-imports": "^0.7.0", | ||
"typescript": "3.7.x" | ||
"typescript": "3.8.x" | ||
}, | ||
@@ -68,3 +71,3 @@ "jest": { | ||
}, | ||
"gitHead": "94045abc4df86296281f3eefc7d5e4bd48636cbe" | ||
"gitHead": "84adc62f4b277203b9252f5c7aef98130d2baa3a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
86115
1407
0
12
+ Addedtslib@1.11.1(transitive)
- Removedtslib@1.10.0(transitive)
Updatedtslib@1.11.1