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/uk | |
| 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/uk')
| -rw-r--r-- | src/locales/uk/address/index.ts | 9 | ||||
| -rw-r--r-- | src/locales/uk/company/index.ts | 13 | ||||
| -rw-r--r-- | src/locales/uk/index.ts | 8 | ||||
| -rw-r--r-- | src/locales/uk/internet/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/uk/name/index.ts | 7 | ||||
| -rw-r--r-- | src/locales/uk/phone_number/index.ts | 7 |
6 files changed, 40 insertions, 11 deletions
diff --git a/src/locales/uk/address/index.ts b/src/locales/uk/address/index.ts index 2ff4a2f6..7eb3421c 100644 --- a/src/locales/uk/address/index.ts +++ b/src/locales/uk/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_name from './city_name'; @@ -14,7 +19,7 @@ import street_prefix from './street_prefix'; import street_suffix from './street_suffix'; import street_title from './street_title'; -const address: any = { +const address = { building_number, city, city_name, @@ -30,6 +35,6 @@ const address: any = { street_prefix, street_suffix, street_title, -}; +} as Partial<AddressDefinitions>; export default address; diff --git a/src/locales/uk/company/index.ts b/src/locales/uk/company/index.ts index 96b9db26..37db74f5 100644 --- a/src/locales/uk/company/index.ts +++ b/src/locales/uk/company/index.ts @@ -1,11 +1,16 @@ -import name from './name'; +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CompanyDefinitions } from '../../..'; +import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -const company: any = { - name, +const company = { + name: name_, prefix, suffix, -}; +} as Partial<CompanyDefinitions>; export default company; diff --git a/src/locales/uk/index.ts b/src/locales/uk/index.ts index bc30e022..f09ceaa0 100644 --- a/src/locales/uk/index.ts +++ b/src/locales/uk/index.ts @@ -1,8 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ import type { LocaleDefinition } from '../..'; import address from './address'; import company from './company'; import internet from './internet'; -import name from './name'; +import name_ from './name'; import phone_number from './phone_number'; const uk: LocaleDefinition = { @@ -10,7 +14,7 @@ const uk: LocaleDefinition = { address, company, internet, - name, + name: name_, phone_number, }; diff --git a/src/locales/uk/internet/index.ts b/src/locales/uk/internet/index.ts index 64484b1b..c73e7beb 100644 --- a/src/locales/uk/internet/index.ts +++ b/src/locales/uk/internet/index.ts @@ -1,7 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { InternetDefinitions } from '../../..'; import domain_suffix from './domain_suffix'; import free_email from './free_email'; -const internet: any = { +const internet: Partial<InternetDefinitions> = { domain_suffix, free_email, }; diff --git a/src/locales/uk/name/index.ts b/src/locales/uk/name/index.ts index 0e77c280..b9493154 100644 --- a/src/locales/uk/name/index.ts +++ b/src/locales/uk/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 female_last_name from './female_last_name'; import female_middle_name from './female_middle_name'; @@ -9,7 +14,7 @@ import prefix from './prefix'; import suffix from './suffix'; import title from './title'; -const name: any = { +const name: Partial<NameDefinitions> = { female_first_name, female_last_name, female_middle_name, diff --git a/src/locales/uk/phone_number/index.ts b/src/locales/uk/phone_number/index.ts index f760b9e1..bf48a8b5 100644 --- a/src/locales/uk/phone_number/index.ts +++ b/src/locales/uk/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, }; |
