diff options
| author | ST-DDT <[email protected]> | 2022-05-05 00:09:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-05 00:09:25 +0200 |
| commit | 984fbb445ff3be3658535bf98916ce5f38943fbf (patch) | |
| tree | afab5f5137ee3069690944d11285d6d5a4e2fe35 /src/locales | |
| parent | f1dba1bb0b90dc5e1e3ee096f937a1d4df6acf03 (diff) | |
| download | faker-984fbb445ff3be3658535bf98916ce5f38943fbf.tar.xz faker-984fbb445ff3be3658535bf98916ce5f38943fbf.zip | |
fix(generate:locale): make the definition types extendible (#915)
Co-authored-by: Piotr Kuczynski <[email protected]>
Diffstat (limited to 'src/locales')
220 files changed, 314 insertions, 314 deletions
diff --git a/src/locales/af_ZA/address/index.ts b/src/locales/af_ZA/address/index.ts index 0e939ead..0d9219e7 100644 --- a/src/locales/af_ZA/address/index.ts +++ b/src/locales/af_ZA/address/index.ts @@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..'; import default_country from './default_country'; import postcode from './postcode'; -const address = { +const address: AddressDefinitions = { default_country, postcode, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/af_ZA/company/index.ts b/src/locales/af_ZA/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/af_ZA/company/index.ts +++ b/src/locales/af_ZA/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/af_ZA/internet/index.ts b/src/locales/af_ZA/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/af_ZA/internet/index.ts +++ b/src/locales/af_ZA/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/af_ZA/name/index.ts b/src/locales/af_ZA/name/index.ts index c90a45ef..ea2e9181 100644 --- a/src/locales/af_ZA/name/index.ts +++ b/src/locales/af_ZA/name/index.ts @@ -8,7 +8,7 @@ import first_name from './first_name'; import last_name from './last_name'; import male_first_name from './male_first_name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/ar/address/index.ts b/src/locales/ar/address/index.ts index 7789c0e5..17f2bed9 100644 --- a/src/locales/ar/address/index.ts +++ b/src/locales/ar/address/index.ts @@ -15,7 +15,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_prefix from './street_prefix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -27,6 +27,6 @@ const address = { street_address, street_name, street_prefix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ar/commerce/index.ts b/src/locales/ar/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/ar/commerce/index.ts +++ b/src/locales/ar/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ar/name/index.ts b/src/locales/ar/name/index.ts index b8cd692a..8018f95e 100644 --- a/src/locales/ar/name/index.ts +++ b/src/locales/ar/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/ar/vehicle/index.ts b/src/locales/ar/vehicle/index.ts index 6735cd53..826d25a0 100644 --- a/src/locales/ar/vehicle/index.ts +++ b/src/locales/ar/vehicle/index.ts @@ -8,7 +8,7 @@ import manufacturer from './manufacturer'; import model from './model'; import type_ from './type'; -const vehicle: Partial<VehicleDefinitions> = { +const vehicle: VehicleDefinitions = { fuel, manufacturer, model, diff --git a/src/locales/az/address/index.ts b/src/locales/az/address/index.ts index 22f6789f..c4e5091a 100644 --- a/src/locales/az/address/index.ts +++ b/src/locales/az/address/index.ts @@ -16,7 +16,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_name, street_suffix, street_title, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/az/commerce/index.ts b/src/locales/az/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/az/commerce/index.ts +++ b/src/locales/az/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/az/company/index.ts b/src/locales/az/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/az/company/index.ts +++ b/src/locales/az/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/az/internet/index.ts b/src/locales/az/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/az/internet/index.ts +++ b/src/locales/az/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/az/name/index.ts b/src/locales/az/name/index.ts index 8cf3afff..740c83d0 100644 --- a/src/locales/az/name/index.ts +++ b/src/locales/az/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, male_first_name, diff --git a/src/locales/cz/address/index.ts b/src/locales/cz/address/index.ts index 7a0acff7..8222f809 100644 --- a/src/locales/cz/address/index.ts +++ b/src/locales/cz/address/index.ts @@ -16,7 +16,7 @@ import street from './street'; import street_address from './street_address'; import street_name from './street_name'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street, street_address, street_name, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/cz/company/index.ts b/src/locales/cz/company/index.ts index c4694c68..1b69a9d1 100644 --- a/src/locales/cz/company/index.ts +++ b/src/locales/cz/company/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_noun, bs_verb, @@ -19,6 +19,6 @@ const company = { name: name_, noun, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/cz/internet/index.ts b/src/locales/cz/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/cz/internet/index.ts +++ b/src/locales/cz/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/cz/name/index.ts b/src/locales/cz/name/index.ts index 3c856e22..7c9ae183 100644 --- a/src/locales/cz/name/index.ts +++ b/src/locales/cz/name/index.ts @@ -14,7 +14,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, first_name, diff --git a/src/locales/de/address/index.ts b/src/locales/de/address/index.ts index 0da91602..77edabd8 100644 --- a/src/locales/de/address/index.ts +++ b/src/locales/de/address/index.ts @@ -17,7 +17,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_root from './street_root'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -31,6 +31,6 @@ const address = { street_address, street_name, street_root, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/de/company/index.ts b/src/locales/de/company/index.ts index d43fc701..312df0c6 100644 --- a/src/locales/de/company/index.ts +++ b/src/locales/de/company/index.ts @@ -7,10 +7,10 @@ import legal_form from './legal_form'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { legal_form, name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/de/internet/index.ts b/src/locales/de/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/de/internet/index.ts +++ b/src/locales/de/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/de/name/index.ts b/src/locales/de/name/index.ts index 59f7cc30..ffa039e9 100644 --- a/src/locales/de/name/index.ts +++ b/src/locales/de/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import nobility_title_prefix from './nobility_title_prefix'; import prefix from './prefix'; -const name = { +const name: NameDefinitions = { female_first_name, first_name, last_name, @@ -19,6 +19,6 @@ const name = { name: name_, nobility_title_prefix, prefix, -} as Partial<NameDefinitions>; +}; export default name; diff --git a/src/locales/de_AT/address/index.ts b/src/locales/de_AT/address/index.ts index 88811abd..f443e582 100644 --- a/src/locales/de_AT/address/index.ts +++ b/src/locales/de_AT/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_root from './street_root'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_root, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/de_AT/company/index.ts b/src/locales/de_AT/company/index.ts index d43fc701..312df0c6 100644 --- a/src/locales/de_AT/company/index.ts +++ b/src/locales/de_AT/company/index.ts @@ -7,10 +7,10 @@ import legal_form from './legal_form'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { legal_form, name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/de_AT/internet/index.ts b/src/locales/de_AT/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/de_AT/internet/index.ts +++ b/src/locales/de_AT/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/de_AT/name/index.ts b/src/locales/de_AT/name/index.ts index 3612b7ba..d7fee674 100644 --- a/src/locales/de_AT/name/index.ts +++ b/src/locales/de_AT/name/index.ts @@ -9,12 +9,12 @@ import name_ from './name'; import nobility_title_prefix from './nobility_title_prefix'; import prefix from './prefix'; -const name = { +const name: NameDefinitions = { first_name, last_name, name: name_, nobility_title_prefix, prefix, -} as Partial<NameDefinitions>; +}; export default name; diff --git a/src/locales/de_CH/address/index.ts b/src/locales/de_CH/address/index.ts index 99dcf81b..a11f61d7 100644 --- a/src/locales/de_CH/address/index.ts +++ b/src/locales/de_CH/address/index.ts @@ -11,7 +11,7 @@ import postcode from './postcode'; import state from './state'; import state_abbr from './state_abbr'; -const address = { +const address: AddressDefinitions = { city, city_name, country_code, @@ -19,6 +19,6 @@ const address = { postcode, state, state_abbr, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/de_CH/company/index.ts b/src/locales/de_CH/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/de_CH/company/index.ts +++ b/src/locales/de_CH/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/de_CH/internet/index.ts b/src/locales/de_CH/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/de_CH/internet/index.ts +++ b/src/locales/de_CH/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/de_CH/name/index.ts b/src/locales/de_CH/name/index.ts index bb662643..da97abbf 100644 --- a/src/locales/de_CH/name/index.ts +++ b/src/locales/de_CH/name/index.ts @@ -8,7 +8,7 @@ import last_name from './last_name'; import name_ from './name'; import prefix from './prefix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/el/address/index.ts b/src/locales/el/address/index.ts index 365551dc..d6efb162 100644 --- a/src/locales/el/address/index.ts +++ b/src/locales/el/address/index.ts @@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..'; import county from './county'; import default_country from './default_country'; -const address = { +const address: AddressDefinitions = { county, default_country, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/el/commerce/index.ts b/src/locales/el/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/el/commerce/index.ts +++ b/src/locales/el/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/el/company/index.ts b/src/locales/el/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/el/company/index.ts +++ b/src/locales/el/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/el/hacker/index.ts b/src/locales/el/hacker/index.ts index 181218e2..2eecf444 100644 --- a/src/locales/el/hacker/index.ts +++ b/src/locales/el/hacker/index.ts @@ -8,7 +8,7 @@ import adjective from './adjective'; import noun from './noun'; import verb from './verb'; -const hacker: Partial<HackerDefinitions> = { +const hacker: HackerDefinitions = { abbreviation, adjective, noun, diff --git a/src/locales/el/internet/index.ts b/src/locales/el/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/el/internet/index.ts +++ b/src/locales/el/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/el/name/index.ts b/src/locales/el/name/index.ts index 77b4c2eb..e0c74acd 100644 --- a/src/locales/el/name/index.ts +++ b/src/locales/el/name/index.ts @@ -9,7 +9,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/en/address/index.ts b/src/locales/en/address/index.ts index 78cb3ec8..60c8078d 100644 --- a/src/locales/en/address/index.ts +++ b/src/locales/en/address/index.ts @@ -24,7 +24,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import time_zone from './time_zone'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -45,6 +45,6 @@ const address = { street_name, street_suffix, time_zone, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en/company/index.ts b/src/locales/en/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/en/company/index.ts +++ b/src/locales/en/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/en/internet/index.ts b/src/locales/en/internet/index.ts index 495d9b6f..9da00b43 100644 --- a/src/locales/en/internet/index.ts +++ b/src/locales/en/internet/index.ts @@ -9,12 +9,12 @@ import emoji from './emoji'; import example_email from './example_email'; import free_email from './free_email'; -const internet = { +const internet: InternetDefinitions = { avatar_uri, domain_suffix, emoji, example_email, free_email, -} as InternetDefinitions; +}; export default internet; diff --git a/src/locales/en/lorem/index.ts b/src/locales/en/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/en/lorem/index.ts +++ b/src/locales/en/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/en/name/index.ts b/src/locales/en/name/index.ts index dcc3fef1..67668f73 100644 --- a/src/locales/en/name/index.ts +++ b/src/locales/en/name/index.ts @@ -17,7 +17,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { binary_gender, female_first_name, female_middle_name, diff --git a/src/locales/en_AU/address/index.ts b/src/locales/en_AU/address/index.ts index 0bb1576e..2c896fff 100644 --- a/src/locales/en_AU/address/index.ts +++ b/src/locales/en_AU/address/index.ts @@ -10,13 +10,13 @@ import state from './state'; import state_abbr from './state_abbr'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, default_country, postcode, state, state_abbr, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_AU/company/index.ts b/src/locales/en_AU/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/en_AU/company/index.ts +++ b/src/locales/en_AU/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_AU/internet/index.ts b/src/locales/en_AU/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_AU/internet/index.ts +++ b/src/locales/en_AU/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_AU/name/index.ts b/src/locales/en_AU/name/index.ts index a55032a0..baa80784 100644 --- a/src/locales/en_AU/name/index.ts +++ b/src/locales/en_AU/name/index.ts @@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..'; import first_name from './first_name'; import last_name from './last_name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, }; diff --git a/src/locales/en_AU_ocker/address/index.ts b/src/locales/en_AU_ocker/address/index.ts index 83ae57b8..e1f1f576 100644 --- a/src/locales/en_AU_ocker/address/index.ts +++ b/src/locales/en_AU_ocker/address/index.ts @@ -15,7 +15,7 @@ import street_name from './street_name'; import street_root from './street_root'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -27,6 +27,6 @@ const address = { street_name, street_root, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_AU_ocker/company/index.ts b/src/locales/en_AU_ocker/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/en_AU_ocker/company/index.ts +++ b/src/locales/en_AU_ocker/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_AU_ocker/internet/index.ts b/src/locales/en_AU_ocker/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_AU_ocker/internet/index.ts +++ b/src/locales/en_AU_ocker/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_AU_ocker/name/index.ts b/src/locales/en_AU_ocker/name/index.ts index 7b938ed2..9320c171 100644 --- a/src/locales/en_AU_ocker/name/index.ts +++ b/src/locales/en_AU_ocker/name/index.ts @@ -7,10 +7,10 @@ import first_name from './first_name'; import last_name from './last_name'; import ocker_first_name from './ocker_first_name'; -const name = { +const name: NameDefinitions = { first_name, last_name, ocker_first_name, -} as Partial<NameDefinitions>; +}; export default name; diff --git a/src/locales/en_CA/address/index.ts b/src/locales/en_CA/address/index.ts index 71ef1ced..7fcaaf57 100644 --- a/src/locales/en_CA/address/index.ts +++ b/src/locales/en_CA/address/index.ts @@ -8,11 +8,11 @@ import postcode from './postcode'; import state from './state'; import state_abbr from './state_abbr'; -const address = { +const address: AddressDefinitions = { default_country, postcode, state, state_abbr, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_CA/internet/index.ts b/src/locales/en_CA/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/en_CA/internet/index.ts +++ b/src/locales/en_CA/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/en_GB/address/index.ts b/src/locales/en_GB/address/index.ts index f3bd982a..24517b91 100644 --- a/src/locales/en_GB/address/index.ts +++ b/src/locales/en_GB/address/index.ts @@ -8,11 +8,11 @@ import default_country from './default_country'; import postcode from './postcode'; import uk_country from './uk_country'; -const address = { +const address: AddressDefinitions = { county, default_country, postcode, uk_country, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_GB/internet/index.ts b/src/locales/en_GB/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_GB/internet/index.ts +++ b/src/locales/en_GB/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_GH/address/index.ts b/src/locales/en_GH/address/index.ts index 24af1942..30977efc 100644 --- a/src/locales/en_GH/address/index.ts +++ b/src/locales/en_GH/address/index.ts @@ -14,7 +14,7 @@ import street_name from './street_name'; import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -25,6 +25,6 @@ const address = { street_name, street_prefix, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_GH/company/index.ts b/src/locales/en_GH/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/en_GH/company/index.ts +++ b/src/locales/en_GH/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/en_GH/internet/index.ts b/src/locales/en_GH/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_GH/internet/index.ts +++ b/src/locales/en_GH/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_GH/name/index.ts b/src/locales/en_GH/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/en_GH/name/index.ts +++ b/src/locales/en_GH/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/en_IE/address/index.ts b/src/locales/en_IE/address/index.ts index 365551dc..d6efb162 100644 --- a/src/locales/en_IE/address/index.ts +++ b/src/locales/en_IE/address/index.ts @@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..'; import county from './county'; import default_country from './default_country'; -const address = { +const address: AddressDefinitions = { county, default_country, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_IE/internet/index.ts b/src/locales/en_IE/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_IE/internet/index.ts +++ b/src/locales/en_IE/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_IND/address/index.ts b/src/locales/en_IND/address/index.ts index 056eb39a..00199011 100644 --- a/src/locales/en_IND/address/index.ts +++ b/src/locales/en_IND/address/index.ts @@ -10,13 +10,13 @@ import postcode from './postcode'; import state from './state'; import state_abbr from './state_abbr'; -const address = { +const address: AddressDefinitions = { city, city_name, default_country, postcode, state, state_abbr, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_IND/company/index.ts b/src/locales/en_IND/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/en_IND/company/index.ts +++ b/src/locales/en_IND/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_IND/internet/index.ts b/src/locales/en_IND/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/en_IND/internet/index.ts +++ b/src/locales/en_IND/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/en_IND/name/index.ts b/src/locales/en_IND/name/index.ts index a55032a0..baa80784 100644 --- a/src/locales/en_IND/name/index.ts +++ b/src/locales/en_IND/name/index.ts @@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..'; import first_name from './first_name'; import last_name from './last_name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, }; diff --git a/src/locales/en_NG/address/index.ts b/src/locales/en_NG/address/index.ts index 8f8c948f..3a51212f 100644 --- a/src/locales/en_NG/address/index.ts +++ b/src/locales/en_NG/address/index.ts @@ -9,12 +9,12 @@ import default_country from './default_country'; import postcode from './postcode'; import state from './state'; -const address = { +const address: AddressDefinitions = { city, city_prefix, default_country, postcode, state, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_NG/company/index.ts b/src/locales/en_NG/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/en_NG/company/index.ts +++ b/src/locales/en_NG/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_NG/internet/index.ts b/src/locales/en_NG/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_NG/internet/index.ts +++ b/src/locales/en_NG/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_NG/name/index.ts b/src/locales/en_NG/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/en_NG/name/index.ts +++ b/src/locales/en_NG/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/en_US/address/index.ts b/src/locales/en_US/address/index.ts index 723335b8..5b2f2765 100644 --- a/src/locales/en_US/address/index.ts +++ b/src/locales/en_US/address/index.ts @@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..'; import default_country from './default_country'; import postcode_by_state from './postcode_by_state'; -const address = { +const address: AddressDefinitions = { default_country, postcode_by_state, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_US/internet/index.ts b/src/locales/en_US/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_US/internet/index.ts +++ b/src/locales/en_US/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_US/phone_number/index.ts b/src/locales/en_US/phone_number/index.ts index f2bd1a26..682879e5 100644 --- a/src/locales/en_US/phone_number/index.ts +++ b/src/locales/en_US/phone_number/index.ts @@ -6,9 +6,9 @@ import type { PhoneNumberDefinitions } from '../../..'; import area_code from './area_code'; import exchange_code from './exchange_code'; -const phone_number = { +const phone_number: PhoneNumberDefinitions = { area_code, exchange_code, -} as Partial<PhoneNumberDefinitions>; +}; export default phone_number; diff --git a/src/locales/en_ZA/address/index.ts b/src/locales/en_ZA/address/index.ts index 8f8c948f..3a51212f 100644 --- a/src/locales/en_ZA/address/index.ts +++ b/src/locales/en_ZA/address/index.ts @@ -9,12 +9,12 @@ import default_country from './default_country'; import postcode from './postcode'; import state from './state'; -const address = { +const address: AddressDefinitions = { city, city_prefix, default_country, postcode, state, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/en_ZA/company/index.ts b/src/locales/en_ZA/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/en_ZA/company/index.ts +++ b/src/locales/en_ZA/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_ZA/internet/index.ts b/src/locales/en_ZA/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/en_ZA/internet/index.ts +++ b/src/locales/en_ZA/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_ZA/name/index.ts b/src/locales/en_ZA/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/en_ZA/name/index.ts +++ b/src/locales/en_ZA/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/en_ZA/phone_number/index.ts b/src/locales/en_ZA/phone_number/index.ts index d04c0c59..fee735f1 100644 --- a/src/locales/en_ZA/phone_number/index.ts +++ b/src/locales/en_ZA/phone_number/index.ts @@ -7,10 +7,10 @@ import area_code from './area_code'; import exchange_code from './exchange_code'; import formats from './formats'; -const phone_number = { +const phone_number: PhoneNumberDefinitions = { area_code, exchange_code, formats, -} as PhoneNumberDefinitions; +}; export default phone_number; diff --git a/src/locales/es/address/index.ts b/src/locales/es/address/index.ts index 095c28a8..da1d8077 100644 --- a/src/locales/es/address/index.ts +++ b/src/locales/es/address/index.ts @@ -18,7 +18,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import time_zone from './time_zone'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -33,6 +33,6 @@ const address = { street_name, street_suffix, time_zone, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/es/commerce/index.ts b/src/locales/es/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/es/commerce/index.ts +++ b/src/locales/es/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/es/company/index.ts b/src/locales/es/company/index.ts index f848fa63..401e3548 100644 --- a/src/locales/es/company/index.ts +++ b/src/locales/es/company/index.ts @@ -9,12 +9,12 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, descriptor, name: name_, noun, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/es/internet/index.ts b/src/locales/es/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/es/internet/index.ts +++ b/src/locales/es/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/es/name/index.ts b/src/locales/es/name/index.ts index b8cd692a..8018f95e 100644 --- a/src/locales/es/name/index.ts +++ b/src/locales/es/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/es_MX/address/index.ts b/src/locales/es_MX/address/index.ts index 34d93b3d..a23b1609 100644 --- a/src/locales/es_MX/address/index.ts +++ b/src/locales/es_MX/address/index.ts @@ -19,7 +19,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import time_zone from './time_zone'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -35,6 +35,6 @@ const address = { street_name, street_suffix, time_zone, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/es_MX/commerce/index.ts b/src/locales/es_MX/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/es_MX/commerce/index.ts +++ b/src/locales/es_MX/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/es_MX/company/index.ts b/src/locales/es_MX/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/es_MX/company/index.ts +++ b/src/locales/es_MX/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/es_MX/internet/index.ts b/src/locales/es_MX/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/es_MX/internet/index.ts +++ b/src/locales/es_MX/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/es_MX/name/index.ts b/src/locales/es_MX/name/index.ts index d6f8fce5..8799810e 100644 --- a/src/locales/es_MX/name/index.ts +++ b/src/locales/es_MX/name/index.ts @@ -10,7 +10,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/fa/address/index.ts b/src/locales/fa/address/index.ts index 64b49f98..77d9222a 100644 --- a/src/locales/fa/address/index.ts +++ b/src/locales/fa/address/index.ts @@ -19,7 +19,7 @@ import street_name from './street_name'; import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -35,6 +35,6 @@ const address = { street_name, street_prefix, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/fa/commerce/index.ts b/src/locales/fa/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/fa/commerce/index.ts +++ b/src/locales/fa/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/fa/company/index.ts b/src/locales/fa/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/fa/company/index.ts +++ b/src/locales/fa/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/fa/internet/index.ts b/src/locales/fa/internet/index.ts index 161d247d..b67a2fe7 100644 --- a/src/locales/fa/internet/index.ts +++ b/src/locales/fa/internet/index.ts @@ -7,7 +7,7 @@ import domain_suffix from './domain_suffix'; import example_email from './example_email'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, example_email, free_email, diff --git a/src/locales/fa/name/index.ts b/src/locales/fa/name/index.ts index ffd544db..4d532475 100644 --- a/src/locales/fa/name/index.ts +++ b/src/locales/fa/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/fa/vehicle/index.ts b/src/locales/fa/vehicle/index.ts index 6735cd53..826d25a0 100644 --- a/src/locales/fa/vehicle/index.ts +++ b/src/locales/fa/vehicle/index.ts @@ -8,7 +8,7 @@ import manufacturer from './manufacturer'; import model from './model'; import type_ from './type'; -const vehicle: Partial<VehicleDefinitions> = { +const vehicle: VehicleDefinitions = { fuel, manufacturer, model, diff --git a/src/locales/fi/name/index.ts b/src/locales/fi/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/fi/name/index.ts +++ b/src/locales/fi/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/fr/address/index.ts b/src/locales/fr/address/index.ts index 9df13565..4ad1b8c7 100644 --- a/src/locales/fr/address/index.ts +++ b/src/locales/fr/address/index.ts @@ -16,7 +16,7 @@ import street_name from './street_name'; import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_name, street_prefix, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/fr/company/index.ts b/src/locales/fr/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/fr/company/index.ts +++ b/src/locales/fr/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/fr/internet/index.ts b/src/locales/fr/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/fr/internet/index.ts +++ b/src/locales/fr/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/fr/name/index.ts b/src/locales/fr/name/index.ts index ffd544db..4d532475 100644 --- a/src/locales/fr/name/index.ts +++ b/src/locales/fr/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/fr_BE/address/index.ts b/src/locales/fr_BE/address/index.ts index f1d0952b..f1b85954 100644 --- a/src/locales/fr_BE/address/index.ts +++ b/src/locales/fr_BE/address/index.ts @@ -16,7 +16,7 @@ import street_name from './street_name'; import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -29,6 +29,6 @@ const address = { street_name, street_prefix, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/fr_BE/internet/index.ts b/src/locales/fr_BE/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/fr_BE/internet/index.ts +++ b/src/locales/fr_BE/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/fr_BE/name/index.ts b/src/locales/fr_BE/name/index.ts index 806e2fde..c2a67693 100644 --- a/src/locales/fr_BE/name/index.ts +++ b/src/locales/fr_BE/name/index.ts @@ -13,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, gender, diff --git a/src/locales/fr_CA/address/index.ts b/src/locales/fr_CA/address/index.ts index 71ef1ced..7fcaaf57 100644 --- a/src/locales/fr_CA/address/index.ts +++ b/src/locales/fr_CA/address/index.ts @@ -8,11 +8,11 @@ import postcode from './postcode'; import state from './state'; import state_abbr from './state_abbr'; -const address = { +const address: AddressDefinitions = { default_country, postcode, state, state_abbr, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/fr_CA/internet/index.ts b/src/locales/fr_CA/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/fr_CA/internet/index.ts +++ b/src/locales/fr_CA/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/fr_CH/address/index.ts b/src/locales/fr_CH/address/index.ts index 1ea3c8e7..ec4e22b9 100644 --- a/src/locales/fr_CH/address/index.ts +++ b/src/locales/fr_CH/address/index.ts @@ -10,13 +10,13 @@ import default_country from './default_country'; import postcode from './postcode'; import state from './state'; -const address = { +const address: AddressDefinitions = { city, city_name, country_code, default_country, postcode, state, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/fr_CH/internet/index.ts b/src/locales/fr_CH/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/fr_CH/internet/index.ts +++ b/src/locales/fr_CH/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/ge/address/index.ts b/src/locales/ge/address/index.ts index e2f034ad..f47674c7 100644 --- a/src/locales/ge/address/index.ts +++ b/src/locales/ge/address/index.ts @@ -17,7 +17,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -31,6 +31,6 @@ const address = { street_name, street_suffix, street_title, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ge/company/index.ts b/src/locales/ge/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/ge/company/index.ts +++ b/src/locales/ge/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/ge/internet/index.ts b/src/locales/ge/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/ge/internet/index.ts +++ b/src/locales/ge/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ge/name/index.ts b/src/locales/ge/name/index.ts index 77b4c2eb..e0c74acd 100644 --- a/src/locales/ge/name/index.ts +++ b/src/locales/ge/name/index.ts @@ -9,7 +9,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/he/address/index.ts b/src/locales/he/address/index.ts index bcf2af27..710a0b9c 100644 --- a/src/locales/he/address/index.ts +++ b/src/locales/he/address/index.ts @@ -21,7 +21,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import time_zone from './time_zone'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -39,6 +39,6 @@ const address = { street_name, street_suffix, time_zone, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/he/lorem/index.ts b/src/locales/he/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/he/lorem/index.ts +++ b/src/locales/he/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/he/name/index.ts b/src/locales/he/name/index.ts index 806e2fde..c2a67693 100644 --- a/src/locales/he/name/index.ts +++ b/src/locales/he/name/index.ts @@ -13,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, gender, diff --git a/src/locales/hr/address/index.ts b/src/locales/hr/address/index.ts index cc35ff34..895b8d98 100644 --- a/src/locales/hr/address/index.ts +++ b/src/locales/hr/address/index.ts @@ -15,7 +15,7 @@ import street_address from './street_address'; import street_name from './street_name'; import time_zone from './time_zone'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -27,6 +27,6 @@ const address = { street_address, street_name, time_zone, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/hr/internet/index.ts b/src/locales/hr/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/hr/internet/index.ts +++ b/src/locales/hr/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/hr/name/index.ts b/src/locales/hr/name/index.ts index b8cd692a..8018f95e 100644 --- a/src/locales/hr/name/index.ts +++ b/src/locales/hr/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/hu/animal/index.ts b/src/locales/hu/animal/index.ts index 70698365..37957dfe 100644 --- a/src/locales/hu/animal/index.ts +++ b/src/locales/hu/animal/index.ts @@ -7,7 +7,7 @@ import cat from './cat'; import dog from './dog'; import horse from './horse'; -const animal: Partial<AnimalDefinitions> = { +const animal: AnimalDefinitions = { cat, dog, horse, diff --git a/src/locales/hu/finance/index.ts b/src/locales/hu/finance/index.ts index d1e16a99..c58e73a4 100644 --- a/src/locales/hu/finance/index.ts +++ b/src/locales/hu/finance/index.ts @@ -6,7 +6,7 @@ import type { FinanceDefinitions } from '../../..'; import account_type from './account_type'; import transaction_type from './transaction_type'; -const finance: Partial<FinanceDefinitions> = { +const finance: FinanceDefinitions = { account_type, transaction_type, }; diff --git a/src/locales/hu/internet/index.ts b/src/locales/hu/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/hu/internet/index.ts +++ b/src/locales/hu/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/hu/name/index.ts b/src/locales/hu/name/index.ts index 54b02001..fbc16c3d 100644 --- a/src/locales/hu/name/index.ts +++ b/src/locales/hu/name/index.ts @@ -10,7 +10,7 @@ import male_first_name from './male_first_name'; import name_ from './name'; import prefix from './prefix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/hu/word/index.ts b/src/locales/hu/word/index.ts index 7cc6fb21..978ecd19 100644 --- a/src/locales/hu/word/index.ts +++ b/src/locales/hu/word/index.ts @@ -10,7 +10,7 @@ import interjection from './interjection'; import noun from './noun'; import verb from './verb'; -const word: Partial<WordDefinitions> = { +const word: WordDefinitions = { adjective, adverb, conjunction, diff --git a/src/locales/hy/address/index.ts b/src/locales/hy/address/index.ts index 9ae58258..57b0a1e8 100644 --- a/src/locales/hy/address/index.ts +++ b/src/locales/hy/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/hy/commerce/index.ts b/src/locales/hy/commerce/index.ts index 8ad08ef7..26b2864f 100644 --- a/src/locales/hy/commerce/index.ts +++ b/src/locales/hy/commerce/index.ts @@ -5,7 +5,7 @@ import type { CommerceDefinitions } from '../../..'; import color from './color'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, }; diff --git a/src/locales/hy/internet/index.ts b/src/locales/hy/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/hy/internet/index.ts +++ b/src/locales/hy/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/hy/name/index.ts b/src/locales/hy/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/hy/name/index.ts +++ b/src/locales/hy/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/id_ID/address/index.ts b/src/locales/id_ID/address/index.ts index be871ff7..c94d5ee1 100644 --- a/src/locales/id_ID/address/index.ts +++ b/src/locales/id_ID/address/index.ts @@ -13,7 +13,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_prefix from './street_prefix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -23,6 +23,6 @@ const address = { street_address, street_name, street_prefix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/id_ID/company/index.ts b/src/locales/id_ID/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/id_ID/company/index.ts +++ b/src/locales/id_ID/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/id_ID/internet/index.ts b/src/locales/id_ID/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/id_ID/internet/index.ts +++ b/src/locales/id_ID/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/id_ID/name/index.ts b/src/locales/id_ID/name/index.ts index 57f814dc..9fd0141a 100644 --- a/src/locales/id_ID/name/index.ts +++ b/src/locales/id_ID/name/index.ts @@ -13,7 +13,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name = { +const name: NameDefinitions = { female_first_name, female_last_name, female_title, @@ -23,6 +23,6 @@ const name = { name: name_, prefix, suffix, -} as Partial<NameDefinitions>; +}; export default name; diff --git a/src/locales/it/address/index.ts b/src/locales/it/address/index.ts index ce53ed7a..8342cd85 100644 --- a/src/locales/it/address/index.ts +++ b/src/locales/it/address/index.ts @@ -18,7 +18,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -33,6 +33,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/it/company/index.ts b/src/locales/it/company/index.ts index a3e1cf1a..abdbc9f5 100644 --- a/src/locales/it/company/index.ts +++ b/src/locales/it/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as CompanyDefinitions; +}; export default company; diff --git a/src/locales/it/internet/index.ts b/src/locales/it/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/it/internet/index.ts +++ b/src/locales/it/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/it/name/index.ts b/src/locales/it/name/index.ts index c674f1a4..4393e0e7 100644 --- a/src/locales/it/name/index.ts +++ b/src/locales/it/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/ja/address/index.ts b/src/locales/ja/address/index.ts index 3d45d62f..02681742 100644 --- a/src/locales/ja/address/index.ts +++ b/src/locales/ja/address/index.ts @@ -12,7 +12,7 @@ import state from './state'; import state_abbr from './state_abbr'; import street_name from './street_name'; -const address = { +const address: AddressDefinitions = { city, city_prefix, city_suffix, @@ -21,6 +21,6 @@ const address = { state, state_abbr, street_name, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ja/lorem/index.ts b/src/locales/ja/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/ja/lorem/index.ts +++ b/src/locales/ja/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/ja/name/index.ts b/src/locales/ja/name/index.ts index ad3a9da3..e5ceaf3c 100644 --- a/src/locales/ja/name/index.ts +++ b/src/locales/ja/name/index.ts @@ -7,7 +7,7 @@ import first_name from './first_name'; import last_name from './last_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/ko/address/index.ts b/src/locales/ko/address/index.ts index aab6f51b..895d0f10 100644 --- a/src/locales/ko/address/index.ts +++ b/src/locales/ko/address/index.ts @@ -13,7 +13,7 @@ import street_name from './street_name'; import street_root from './street_root'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { city, city_name, city_suffix, @@ -23,6 +23,6 @@ const address = { street_name, street_root, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ko/company/index.ts b/src/locales/ko/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/ko/company/index.ts +++ b/src/locales/ko/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/ko/internet/index.ts b/src/locales/ko/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/ko/internet/index.ts +++ b/src/locales/ko/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ko/name/index.ts b/src/locales/ko/name/index.ts index ad3a9da3..e5ceaf3c 100644 --- a/src/locales/ko/name/index.ts +++ b/src/locales/ko/name/index.ts @@ -7,7 +7,7 @@ import first_name from './first_name'; import last_name from './last_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/lv/address/index.ts b/src/locales/lv/address/index.ts index 22f6789f..c4e5091a 100644 --- a/src/locales/lv/address/index.ts +++ b/src/locales/lv/address/index.ts @@ -16,7 +16,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_name, street_suffix, street_title, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/lv/commerce/index.ts b/src/locales/lv/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/lv/commerce/index.ts +++ b/src/locales/lv/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/lv/company/index.ts b/src/locales/lv/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/lv/company/index.ts +++ b/src/locales/lv/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/lv/internet/index.ts b/src/locales/lv/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/lv/internet/index.ts +++ b/src/locales/lv/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/lv/lorem/index.ts b/src/locales/lv/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/lv/lorem/index.ts +++ b/src/locales/lv/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/lv/name/index.ts b/src/locales/lv/name/index.ts index 4a67aef6..3f757e95 100644 --- a/src/locales/lv/name/index.ts +++ b/src/locales/lv/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, male_first_name, diff --git a/src/locales/mk/address/index.ts b/src/locales/mk/address/index.ts index 52320c09..d15f9ae6 100644 --- a/src/locales/mk/address/index.ts +++ b/src/locales/mk/address/index.ts @@ -14,7 +14,7 @@ import street from './street'; import street_address from './street_address'; import street_name from './street_name'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -25,6 +25,6 @@ const address = { street, street_address, street_name, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/mk/company/index.ts b/src/locales/mk/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/mk/company/index.ts +++ b/src/locales/mk/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/mk/internet/index.ts b/src/locales/mk/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/mk/internet/index.ts +++ b/src/locales/mk/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/mk/name/index.ts b/src/locales/mk/name/index.ts index db8c210f..8c6e627e 100644 --- a/src/locales/mk/name/index.ts +++ b/src/locales/mk/name/index.ts @@ -16,7 +16,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, female_prefix, diff --git a/src/locales/nb_NO/address/index.ts b/src/locales/nb_NO/address/index.ts index 055bcc64..eb2468ab 100644 --- a/src/locales/nb_NO/address/index.ts +++ b/src/locales/nb_NO/address/index.ts @@ -18,7 +18,7 @@ import street_prefix from './street_prefix'; import street_root from './street_root'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_root, @@ -33,6 +33,6 @@ const address = { street_prefix, street_root, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/nb_NO/company/index.ts b/src/locales/nb_NO/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/nb_NO/company/index.ts +++ b/src/locales/nb_NO/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/nb_NO/internet/index.ts b/src/locales/nb_NO/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/nb_NO/internet/index.ts +++ b/src/locales/nb_NO/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/nb_NO/name/index.ts b/src/locales/nb_NO/name/index.ts index c674f1a4..4393e0e7 100644 --- a/src/locales/nb_NO/name/index.ts +++ b/src/locales/nb_NO/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/ne/address/index.ts b/src/locales/ne/address/index.ts index 337bd626..ec4a46a8 100644 --- a/src/locales/ne/address/index.ts +++ b/src/locales/ne/address/index.ts @@ -7,10 +7,10 @@ import city from './city'; import default_country from './default_country'; import state from './state'; -const address = { +const address: AddressDefinitions = { city, default_country, state, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ne/company/index.ts b/src/locales/ne/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/ne/company/index.ts +++ b/src/locales/ne/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/ne/internet/index.ts b/src/locales/ne/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/ne/internet/index.ts +++ b/src/locales/ne/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ne/name/index.ts b/src/locales/ne/name/index.ts index a55032a0..baa80784 100644 --- a/src/locales/ne/name/index.ts +++ b/src/locales/ne/name/index.ts @@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..'; import first_name from './first_name'; import last_name from './last_name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, }; diff --git a/src/locales/nl/address/index.ts b/src/locales/nl/address/index.ts index 1c98e9fc..db1f0cbf 100644 --- a/src/locales/nl/address/index.ts +++ b/src/locales/nl/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/nl/commerce/index.ts b/src/locales/nl/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/nl/commerce/index.ts +++ b/src/locales/nl/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/nl/company/index.ts b/src/locales/nl/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/nl/company/index.ts +++ b/src/locales/nl/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/nl/hacker/index.ts b/src/locales/nl/hacker/index.ts index 8c41988f..daf8d3c2 100644 --- a/src/locales/nl/hacker/index.ts +++ b/src/locales/nl/hacker/index.ts @@ -8,7 +8,7 @@ import noun from './noun'; import phrase from './phrase'; import verb from './verb'; -const hacker: Partial<HackerDefinitions> = { +const hacker: HackerDefinitions = { adjective, noun, phrase, diff --git a/src/locales/nl/internet/index.ts b/src/locales/nl/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/nl/internet/index.ts +++ b/src/locales/nl/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/nl/name/index.ts b/src/locales/nl/name/index.ts index 12b174cf..6df85f13 100644 --- a/src/locales/nl/name/index.ts +++ b/src/locales/nl/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import tussenvoegsel from './tussenvoegsel'; -const name = { +const name: NameDefinitions = { female_first_name, first_name, last_name, @@ -21,6 +21,6 @@ const name = { prefix, suffix, tussenvoegsel, -} as Partial<NameDefinitions>; +}; export default name; diff --git a/src/locales/nl_BE/address/index.ts b/src/locales/nl_BE/address/index.ts index 9aea3c01..c21cb8b1 100644 --- a/src/locales/nl_BE/address/index.ts +++ b/src/locales/nl_BE/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/nl_BE/company/index.ts b/src/locales/nl_BE/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/nl_BE/company/index.ts +++ b/src/locales/nl_BE/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/nl_BE/internet/index.ts b/src/locales/nl_BE/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/nl_BE/internet/index.ts +++ b/src/locales/nl_BE/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/nl_BE/name/index.ts b/src/locales/nl_BE/name/index.ts index 4023f7d7..9c4bab79 100644 --- a/src/locales/nl_BE/name/index.ts +++ b/src/locales/nl_BE/name/index.ts @@ -9,7 +9,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/pl/address/index.ts b/src/locales/pl/address/index.ts index 9aba4efb..9a7acbb8 100644 --- a/src/locales/pl/address/index.ts +++ b/src/locales/pl/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_prefix from './street_prefix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_prefix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/pl/company/index.ts b/src/locales/pl/company/index.ts index 0ab3ff59..777ef05c 100644 --- a/src/locales/pl/company/index.ts +++ b/src/locales/pl/company/index.ts @@ -12,7 +12,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjetive, bs_adjective, bs_noun, @@ -21,6 +21,6 @@ const company = { name: name_, noun, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/pl/internet/index.ts b/src/locales/pl/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/pl/internet/index.ts +++ b/src/locales/pl/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/pl/name/index.ts b/src/locales/pl/name/index.ts index ffd544db..4d532475 100644 --- a/src/locales/pl/name/index.ts +++ b/src/locales/pl/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/pt_BR/address/index.ts b/src/locales/pt_BR/address/index.ts index 27ad3901..10be9fe3 100644 --- a/src/locales/pt_BR/address/index.ts +++ b/src/locales/pt_BR/address/index.ts @@ -14,7 +14,7 @@ import state from './state'; import state_abbr from './state_abbr'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city_prefix, city_suffix, @@ -25,6 +25,6 @@ const address = { state, state_abbr, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/pt_BR/commerce/index.ts b/src/locales/pt_BR/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/pt_BR/commerce/index.ts +++ b/src/locales/pt_BR/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/pt_BR/company/index.ts b/src/locales/pt_BR/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/pt_BR/company/index.ts +++ b/src/locales/pt_BR/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/pt_BR/internet/index.ts b/src/locales/pt_BR/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/pt_BR/internet/index.ts +++ b/src/locales/pt_BR/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/pt_BR/name/index.ts b/src/locales/pt_BR/name/index.ts index 335315b9..d4c0e73a 100644 --- a/src/locales/pt_BR/name/index.ts +++ b/src/locales/pt_BR/name/index.ts @@ -13,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { binary_gender, female_first_name, first_name, diff --git a/src/locales/pt_PT/address/index.ts b/src/locales/pt_PT/address/index.ts index d0a5e212..3bd6ac41 100644 --- a/src/locales/pt_PT/address/index.ts +++ b/src/locales/pt_PT/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_prefix from './street_prefix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_prefix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/pt_PT/commerce/index.ts b/src/locales/pt_PT/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/pt_PT/commerce/index.ts +++ b/src/locales/pt_PT/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/pt_PT/internet/index.ts b/src/locales/pt_PT/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/pt_PT/internet/index.ts +++ b/src/locales/pt_PT/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/pt_PT/name/index.ts b/src/locales/pt_PT/name/index.ts index 8c4f0394..6fbdcb53 100644 --- a/src/locales/pt_PT/name/index.ts +++ b/src/locales/pt_PT/name/index.ts @@ -13,7 +13,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_prefix, first_name, diff --git a/src/locales/ro/address/index.ts b/src/locales/ro/address/index.ts index 9b4199f6..5698ded1 100644 --- a/src/locales/ro/address/index.ts +++ b/src/locales/ro/address/index.ts @@ -16,7 +16,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, county, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ro/internet/index.ts b/src/locales/ro/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/ro/internet/index.ts +++ b/src/locales/ro/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ro/name/index.ts b/src/locales/ro/name/index.ts index 9405aa80..b142fe88 100644 --- a/src/locales/ro/name/index.ts +++ b/src/locales/ro/name/index.ts @@ -10,7 +10,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, last_name, male_first_name, diff --git a/src/locales/ru/address/index.ts b/src/locales/ru/address/index.ts index 22f6789f..c4e5091a 100644 --- a/src/locales/ru/address/index.ts +++ b/src/locales/ru/address/index.ts @@ -16,7 +16,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -29,6 +29,6 @@ const address = { street_name, street_suffix, street_title, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ru/commerce/index.ts b/src/locales/ru/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/ru/commerce/index.ts +++ b/src/locales/ru/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ru/company/index.ts b/src/locales/ru/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/ru/company/index.ts +++ b/src/locales/ru/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/ru/internet/index.ts b/src/locales/ru/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/ru/internet/index.ts +++ b/src/locales/ru/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ru/name/index.ts b/src/locales/ru/name/index.ts index b9493154..6a0b4f3f 100644 --- a/src/locales/ru/name/index.ts +++ b/src/locales/ru/name/index.ts @@ -14,7 +14,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, female_middle_name, diff --git a/src/locales/sk/address/index.ts b/src/locales/sk/address/index.ts index 009d9ad9..2551894c 100644 --- a/src/locales/sk/address/index.ts +++ b/src/locales/sk/address/index.ts @@ -18,7 +18,7 @@ import street from './street'; import street_address from './street_address'; import street_name from './street_name'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -33,6 +33,6 @@ const address = { street, street_address, street_name, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/sk/company/index.ts b/src/locales/sk/company/index.ts index c4694c68..1b69a9d1 100644 --- a/src/locales/sk/company/index.ts +++ b/src/locales/sk/company/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import noun from './noun'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { adjective, bs_noun, bs_verb, @@ -19,6 +19,6 @@ const company = { name: name_, noun, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/sk/internet/index.ts b/src/locales/sk/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/sk/internet/index.ts +++ b/src/locales/sk/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/sk/name/index.ts b/src/locales/sk/name/index.ts index 4a67aef6..3f757e95 100644 --- a/src/locales/sk/name/index.ts +++ b/src/locales/sk/name/index.ts @@ -12,7 +12,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, male_first_name, diff --git a/src/locales/sv/address/index.ts b/src/locales/sv/address/index.ts index addb740d..1c99319a 100644 --- a/src/locales/sv/address/index.ts +++ b/src/locales/sv/address/index.ts @@ -19,7 +19,7 @@ import street_prefix from './street_prefix'; import street_root from './street_root'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -35,6 +35,6 @@ const address = { street_prefix, street_root, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/sv/commerce/index.ts b/src/locales/sv/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/sv/commerce/index.ts +++ b/src/locales/sv/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/sv/company/index.ts b/src/locales/sv/company/index.ts index d6c3f798..f3027330 100644 --- a/src/locales/sv/company/index.ts +++ b/src/locales/sv/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/sv/internet/index.ts b/src/locales/sv/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/sv/internet/index.ts +++ b/src/locales/sv/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/sv/name/index.ts b/src/locales/sv/name/index.ts index ffd544db..4d532475 100644 --- a/src/locales/sv/name/index.ts +++ b/src/locales/sv/name/index.ts @@ -11,7 +11,7 @@ import name_ from './name'; import prefix from './prefix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/tr/address/index.ts b/src/locales/tr/address/index.ts index 62a2b1b2..8c8323e0 100644 --- a/src/locales/tr/address/index.ts +++ b/src/locales/tr/address/index.ts @@ -12,7 +12,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_root from './street_root'; -const address = { +const address: AddressDefinitions = { building_number, city, country, @@ -21,6 +21,6 @@ const address = { street_address, street_name, street_root, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/tr/internet/index.ts b/src/locales/tr/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/tr/internet/index.ts +++ b/src/locales/tr/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/tr/name/index.ts b/src/locales/tr/name/index.ts index 54b02001..fbc16c3d 100644 --- a/src/locales/tr/name/index.ts +++ b/src/locales/tr/name/index.ts @@ -10,7 +10,7 @@ import male_first_name from './male_first_name'; import name_ from './name'; import prefix from './prefix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/tr/phone_number/index.ts b/src/locales/tr/phone_number/index.ts index aaad7ae5..3c11a3eb 100644 --- a/src/locales/tr/phone_number/index.ts +++ b/src/locales/tr/phone_number/index.ts @@ -6,9 +6,9 @@ import type { PhoneNumberDefinitions } from '../../..'; import area_code from './area_code'; import formats from './formats'; -const phone_number = { +const phone_number: PhoneNumberDefinitions = { area_code, formats, -} as PhoneNumberDefinitions; +}; export default phone_number; diff --git a/src/locales/uk/address/index.ts b/src/locales/uk/address/index.ts index 7eb3421c..328e9c2c 100644 --- a/src/locales/uk/address/index.ts +++ b/src/locales/uk/address/index.ts @@ -19,7 +19,7 @@ import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -35,6 +35,6 @@ const address = { street_prefix, street_suffix, street_title, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/uk/company/index.ts b/src/locales/uk/company/index.ts index 37db74f5..6e91a4e2 100644 --- a/src/locales/uk/company/index.ts +++ b/src/locales/uk/company/index.ts @@ -7,10 +7,10 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, suffix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/uk/internet/index.ts b/src/locales/uk/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/uk/internet/index.ts +++ b/src/locales/uk/internet/index.ts @@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/uk/name/index.ts b/src/locales/uk/name/index.ts index b9493154..6a0b4f3f 100644 --- a/src/locales/uk/name/index.ts +++ b/src/locales/uk/name/index.ts @@ -14,7 +14,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, female_last_name, female_middle_name, diff --git a/src/locales/ur/address/index.ts b/src/locales/ur/address/index.ts index a04af907..8717b895 100644 --- a/src/locales/ur/address/index.ts +++ b/src/locales/ur/address/index.ts @@ -19,7 +19,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_name, @@ -35,6 +35,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ur/animal/index.ts b/src/locales/ur/animal/index.ts index 20a7eb60..1bcb8613 100644 --- a/src/locales/ur/animal/index.ts +++ b/src/locales/ur/animal/index.ts @@ -10,7 +10,7 @@ import insect from './insect'; import lion from './lion'; import type_ from './type'; -const animal: Partial<AnimalDefinitions> = { +const animal: AnimalDefinitions = { bear, cow, crocodilia, diff --git a/src/locales/ur/commerce/index.ts b/src/locales/ur/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/ur/commerce/index.ts +++ b/src/locales/ur/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ur/finance/index.ts b/src/locales/ur/finance/index.ts index d1e16a99..c58e73a4 100644 --- a/src/locales/ur/finance/index.ts +++ b/src/locales/ur/finance/index.ts @@ -6,7 +6,7 @@ import type { FinanceDefinitions } from '../../..'; import account_type from './account_type'; import transaction_type from './transaction_type'; -const finance: Partial<FinanceDefinitions> = { +const finance: FinanceDefinitions = { account_type, transaction_type, }; diff --git a/src/locales/ur/lorem/index.ts b/src/locales/ur/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/ur/lorem/index.ts +++ b/src/locales/ur/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/ur/name/index.ts b/src/locales/ur/name/index.ts index 335315b9..d4c0e73a 100644 --- a/src/locales/ur/name/index.ts +++ b/src/locales/ur/name/index.ts @@ -13,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { binary_gender, female_first_name, first_name, diff --git a/src/locales/vi/address/index.ts b/src/locales/vi/address/index.ts index 95ae439c..dc1ca309 100644 --- a/src/locales/vi/address/index.ts +++ b/src/locales/vi/address/index.ts @@ -9,12 +9,12 @@ import country from './country'; import default_country from './default_country'; import postcode from './postcode'; -const address = { +const address: AddressDefinitions = { city, city_root, country, default_country, postcode, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/vi/company/index.ts b/src/locales/vi/company/index.ts index 204b0628..eeb77160 100644 --- a/src/locales/vi/company/index.ts +++ b/src/locales/vi/company/index.ts @@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..'; import name_ from './name'; import prefix from './prefix'; -const company = { +const company: CompanyDefinitions = { name: name_, prefix, -} as Partial<CompanyDefinitions>; +}; export default company; diff --git a/src/locales/vi/internet/index.ts b/src/locales/vi/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/vi/internet/index.ts +++ b/src/locales/vi/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/vi/name/index.ts b/src/locales/vi/name/index.ts index 513b2c73..80631e1c 100644 --- a/src/locales/vi/name/index.ts +++ b/src/locales/vi/name/index.ts @@ -9,7 +9,7 @@ import last_name from './last_name'; import male_first_name from './male_first_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, diff --git a/src/locales/zh_CN/address/index.ts b/src/locales/zh_CN/address/index.ts index d4ea9a13..1a01c95d 100644 --- a/src/locales/zh_CN/address/index.ts +++ b/src/locales/zh_CN/address/index.ts @@ -15,7 +15,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -27,6 +27,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/zh_CN/name/index.ts b/src/locales/zh_CN/name/index.ts index ad3a9da3..e5ceaf3c 100644 --- a/src/locales/zh_CN/name/index.ts +++ b/src/locales/zh_CN/name/index.ts @@ -7,7 +7,7 @@ import first_name from './first_name'; import last_name from './last_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/zh_TW/address/index.ts b/src/locales/zh_TW/address/index.ts index d4ea9a13..1a01c95d 100644 --- a/src/locales/zh_TW/address/index.ts +++ b/src/locales/zh_TW/address/index.ts @@ -15,7 +15,7 @@ import street_address from './street_address'; import street_name from './street_name'; import street_suffix from './street_suffix'; -const address = { +const address: AddressDefinitions = { building_number, city, city_prefix, @@ -27,6 +27,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/zh_TW/name/index.ts b/src/locales/zh_TW/name/index.ts index ad3a9da3..e5ceaf3c 100644 --- a/src/locales/zh_TW/name/index.ts +++ b/src/locales/zh_TW/name/index.ts @@ -7,7 +7,7 @@ import first_name from './first_name'; import last_name from './last_name'; import name_ from './name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, diff --git a/src/locales/zu_ZA/address/index.ts b/src/locales/zu_ZA/address/index.ts index 0e939ead..0d9219e7 100644 --- a/src/locales/zu_ZA/address/index.ts +++ b/src/locales/zu_ZA/address/index.ts @@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..'; import default_country from './default_country'; import postcode from './postcode'; -const address = { +const address: AddressDefinitions = { default_country, postcode, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/zu_ZA/company/index.ts b/src/locales/zu_ZA/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/zu_ZA/company/index.ts +++ b/src/locales/zu_ZA/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/zu_ZA/internet/index.ts b/src/locales/zu_ZA/internet/index.ts index 5d0ba7d6..5726872b 100644 --- a/src/locales/zu_ZA/internet/index.ts +++ b/src/locales/zu_ZA/internet/index.ts @@ -5,7 +5,7 @@ import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; -const internet: Partial<InternetDefinitions> = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/zu_ZA/name/index.ts b/src/locales/zu_ZA/name/index.ts index c90a45ef..ea2e9181 100644 --- a/src/locales/zu_ZA/name/index.ts +++ b/src/locales/zu_ZA/name/index.ts @@ -8,7 +8,7 @@ import first_name from './first_name'; import last_name from './last_name'; import male_first_name from './male_first_name'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { female_first_name, first_name, last_name, |
