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