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