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/ur | |
| 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/ur')
| -rw-r--r-- | src/locales/ur/address/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/ur/animal/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/ur/commerce/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/ur/finance/index.ts | 2 | ||||
| -rw-r--r-- | src/locales/ur/lorem/index.ts | 4 | ||||
| -rw-r--r-- | src/locales/ur/name/index.ts | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/locales/ur/address/index.ts b/src/locales/ur/address/index.ts index a04af907..8717b895 100644 --- a/src/locales/ur/address/index.ts +++ b/src/locales/ur/address/index.ts @@ -19,7 +19,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_name, @@ -35,6 +35,6 @@ const address = { street_address, street_name, street_suffix, -} as Partial<AddressDefinitions>; +}; export default address; diff --git a/src/locales/ur/animal/index.ts b/src/locales/ur/animal/index.ts index 20a7eb60..1bcb8613 100644 --- a/src/locales/ur/animal/index.ts +++ b/src/locales/ur/animal/index.ts @@ -10,7 +10,7 @@ import insect from './insect'; import lion from './lion'; import type_ from './type'; -const animal: Partial<AnimalDefinitions> = { +const animal: AnimalDefinitions = { bear, cow, crocodilia, diff --git a/src/locales/ur/commerce/index.ts b/src/locales/ur/commerce/index.ts index 621c6057..823fcbd2 100644 --- a/src/locales/ur/commerce/index.ts +++ b/src/locales/ur/commerce/index.ts @@ -7,7 +7,7 @@ import color from './color'; import department from './department'; import product_name from './product_name'; -const commerce: Partial<CommerceDefinitions> = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ur/finance/index.ts b/src/locales/ur/finance/index.ts index d1e16a99..c58e73a4 100644 --- a/src/locales/ur/finance/index.ts +++ b/src/locales/ur/finance/index.ts @@ -6,7 +6,7 @@ import type { FinanceDefinitions } from '../../..'; import account_type from './account_type'; import transaction_type from './transaction_type'; -const finance: Partial<FinanceDefinitions> = { +const finance: FinanceDefinitions = { account_type, transaction_type, }; diff --git a/src/locales/ur/lorem/index.ts b/src/locales/ur/lorem/index.ts index e1929cf1..b72a2355 100644 --- a/src/locales/ur/lorem/index.ts +++ b/src/locales/ur/lorem/index.ts @@ -6,9 +6,9 @@ import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem = { +const lorem: LoremDefinitions = { supplemental, words, -} as LoremDefinitions; +}; export default lorem; diff --git a/src/locales/ur/name/index.ts b/src/locales/ur/name/index.ts index 335315b9..d4c0e73a 100644 --- a/src/locales/ur/name/index.ts +++ b/src/locales/ur/name/index.ts @@ -13,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: Partial<NameDefinitions> = { +const name: NameDefinitions = { binary_gender, female_first_name, first_name, |
