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/it | |
| 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/it')
| -rw-r--r-- | src/locales/it/address/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/it/company/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/it/internet/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/it/name/index.ts | 2 |
4 files changed, 6 insertions, 6 deletions
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, |
