aboutsummaryrefslogtreecommitdiff
path: root/src/locales/hr
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-05-05 00:09:25 +0200
committerGitHub <[email protected]>2022-05-05 00:09:25 +0200
commit984fbb445ff3be3658535bf98916ce5f38943fbf (patch)
treeafab5f5137ee3069690944d11285d6d5a4e2fe35 /src/locales/hr
parentf1dba1bb0b90dc5e1e3ee096f937a1d4df6acf03 (diff)
downloadfaker-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.ts4
-rw-r--r--src/locales/hr/internet/index.ts2
-rw-r--r--src/locales/hr/name/index.ts2
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,