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