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/nl_BE | |
| 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/nl_BE')
| -rw-r--r-- | src/locales/nl_BE/address/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/nl_BE/company/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/nl_BE/internet/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/nl_BE/name/index.ts | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/locales/nl_BE/address/index.ts b/src/locales/nl_BE/address/index.ts index 9aea3c01..c21cb8b1 100644 --- a/src/locales/nl_BE/address/index.ts +++ b/src/locales/nl_BE/address/index.ts @@ -16,7 +16,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_prefix, @@ -29,6 +29,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/nl_BE/company/index.ts b/src/locales/nl_BE/company/index.ts index 4431aca2..a7c20c6c 100644 --- a/src/locales/nl_BE/company/index.ts +++ b/src/locales/nl_BE/company/index.ts @@ -5,7 +5,7 @@ import type { CompanyDefinitions } from '../../..'; import suffix from './suffix'; -const company: Partial<CompanyDefinitions> = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/nl_BE/internet/index.ts b/src/locales/nl_BE/internet/index.ts index c73e7beb..8b0ef73e 100644 --- a/src/locales/nl_BE/internet/index.ts +++ b/src/locales/nl_BE/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/nl_BE/name/index.ts b/src/locales/nl_BE/name/index.ts index 4023f7d7..9c4bab79 100644 --- a/src/locales/nl_BE/name/index.ts +++ b/src/locales/nl_BE/name/index.ts @@ -9,7 +9,7 @@ import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { first_name, last_name, name: name_, |
