diff options
| author | ST-DDT <[email protected]> | 2022-02-11 19:58:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-11 19:58:56 +0100 |
| commit | 419e9e20a570b44909faf24c9019bf7f232ee7a9 (patch) | |
| tree | b4a5399d9033d281fa4b018adc5f448a23a998a4 /src/locales/he | |
| parent | 6afa92b7471cf3e4170c8063e7b01ee68321e546 (diff) | |
| download | faker-419e9e20a570b44909faf24c9019bf7f232ee7a9.tar.xz faker-419e9e20a570b44909faf24c9019bf7f232ee7a9.zip | |
feat(types): provide strong typing for locales 2 (#398)
Diffstat (limited to 'src/locales/he')
| -rw-r--r-- | src/locales/he/address/index.ts | 9 | ||||
| -rw-r--r-- | src/locales/he/commerce/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/he/date/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/he/index.ts | 8 | ||||
| -rw-r--r-- | src/locales/he/lorem/index.ts | 9 | ||||
| -rw-r--r-- | src/locales/he/music/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/he/name/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/he/phone_number/index.ts | 7 |
8 files changed, 50 insertions, 11 deletions
diff --git a/src/locales/he/address/index.ts b/src/locales/he/address/index.ts index b37e5214..b5c5cf38 100644 --- a/src/locales/he/address/index.ts +++ b/src/locales/he/address/index.ts @@ -1,3 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { AddressDefinitions } from '../../..'; import building_number from './building_number'; import city from './city'; import city_prefix from './city_prefix'; @@ -19,7 +24,7 @@ import street_name from './street_name'; import street_suffix from './street_suffix'; import time_zone from './time_zone'; -const address: any = { +const address = { building_number, city, city_prefix, @@ -40,6 +45,6 @@ const address: any = { street_name, street_suffix, time_zone, -}; +} as Partial<AddressDefinitions>; export default address; diff --git a/src/locales/he/commerce/index.ts b/src/locales/he/commerce/index.ts index 74ccad9a..2f3f890d 100644 --- a/src/locales/he/commerce/index.ts +++ b/src/locales/he/commerce/index.ts @@ -1,9 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CommerceDefinitions } from '../../..'; import color from './color'; import department from './department'; import product_description from './product_description'; import product_name from './product_name'; -const commerce: any = { +const commerce: CommerceDefinitions = { color, department, product_description, diff --git a/src/locales/he/date/index.ts b/src/locales/he/date/index.ts index 35b1df67..cd296b42 100644 --- a/src/locales/he/date/index.ts +++ b/src/locales/he/date/index.ts @@ -1,7 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinitions } from '../../..'; import month from './month'; import weekday from './weekday'; -const date: any = { +const date: DateDefinitions = { month, weekday, }; diff --git a/src/locales/he/index.ts b/src/locales/he/index.ts index a209aa68..1ab59ac8 100644 --- a/src/locales/he/index.ts +++ b/src/locales/he/index.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ import type { LocaleDefinition } from '../..'; import address from './address'; import cell_phone from './cell_phone'; @@ -5,7 +9,7 @@ import commerce from './commerce'; import date from './date'; import lorem from './lorem'; import music from './music'; -import name from './name'; +import name_ from './name'; import phone_number from './phone_number'; const he: LocaleDefinition = { @@ -17,7 +21,7 @@ const he: LocaleDefinition = { date, lorem, music, - name, + name: name_, phone_number, }; diff --git a/src/locales/he/lorem/index.ts b/src/locales/he/lorem/index.ts index 62962376..e1929cf1 100644 --- a/src/locales/he/lorem/index.ts +++ b/src/locales/he/lorem/index.ts @@ -1,9 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LoremDefinitions } from '../../..'; import supplemental from './supplemental'; import words from './words'; -const lorem: any = { +const lorem = { supplemental, words, -}; +} as LoremDefinitions; export default lorem; diff --git a/src/locales/he/music/index.ts b/src/locales/he/music/index.ts index 54b9163e..45e23540 100644 --- a/src/locales/he/music/index.ts +++ b/src/locales/he/music/index.ts @@ -1,6 +1,11 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { MusicDefinitions } from '../../..'; import genre from './genre'; -const music: any = { +const music: MusicDefinitions = { genre, }; diff --git a/src/locales/he/name/index.ts b/src/locales/he/name/index.ts index 36943c64..806e2fde 100644 --- a/src/locales/he/name/index.ts +++ b/src/locales/he/name/index.ts @@ -1,3 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { NameDefinitions } from '../../..'; import female_first_name from './female_first_name'; import first_name from './first_name'; import gender from './gender'; @@ -8,7 +13,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: any = { +const name: Partial<NameDefinitions> = { female_first_name, first_name, gender, diff --git a/src/locales/he/phone_number/index.ts b/src/locales/he/phone_number/index.ts index f760b9e1..bf48a8b5 100644 --- a/src/locales/he/phone_number/index.ts +++ b/src/locales/he/phone_number/index.ts @@ -1,6 +1,11 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PhoneNumberDefinitions } from '../../..'; import formats from './formats'; -const phone_number: any = { +const phone_number: PhoneNumberDefinitions = { formats, }; |
