aboutsummaryrefslogtreecommitdiff
path: root/src/locales/it
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-02-11 19:58:56 +0100
committerGitHub <[email protected]>2022-02-11 19:58:56 +0100
commit419e9e20a570b44909faf24c9019bf7f232ee7a9 (patch)
treeb4a5399d9033d281fa4b018adc5f448a23a998a4 /src/locales/it
parent6afa92b7471cf3e4170c8063e7b01ee68321e546 (diff)
downloadfaker-419e9e20a570b44909faf24c9019bf7f232ee7a9.tar.xz
faker-419e9e20a570b44909faf24c9019bf7f232ee7a9.zip
feat(types): provide strong typing for locales 2 (#398)
Diffstat (limited to 'src/locales/it')
-rw-r--r--src/locales/it/address/index.ts9
-rw-r--r--src/locales/it/company/index.ts13
-rw-r--r--src/locales/it/index.ts8
-rw-r--r--src/locales/it/internet/index.ts7
-rw-r--r--src/locales/it/name/index.ts7
-rw-r--r--src/locales/it/phone_number/index.ts7
6 files changed, 40 insertions, 11 deletions
diff --git a/src/locales/it/address/index.ts b/src/locales/it/address/index.ts
index ec6cf6e1..ce53ed7a 100644
--- a/src/locales/it/address/index.ts
+++ b/src/locales/it/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';
@@ -13,7 +18,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_suffix from './street_suffix';
-const address: any = {
+const address = {
building_number,
city,
city_name,
@@ -28,6 +33,6 @@ const address: any = {
street_address,
street_name,
street_suffix,
-};
+} as Partial<AddressDefinitions>;
export default address;
diff --git a/src/locales/it/company/index.ts b/src/locales/it/company/index.ts
index 9c234393..a3e1cf1a 100644
--- a/src/locales/it/company/index.ts
+++ b/src/locales/it/company/index.ts
@@ -1,21 +1,26 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import descriptor from './descriptor';
-import name from './name';
+import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company: any = {
+const company = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
descriptor,
- name,
+ name: name_,
noun,
suffix,
-};
+} as CompanyDefinitions;
export default company;
diff --git a/src/locales/it/index.ts b/src/locales/it/index.ts
index 3d59611f..0156f5c4 100644
--- a/src/locales/it/index.ts
+++ b/src/locales/it/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 it: LocaleDefinition = {
@@ -10,7 +14,7 @@ const it: LocaleDefinition = {
address,
company,
internet,
- name,
+ name: name_,
phone_number,
};
diff --git a/src/locales/it/internet/index.ts b/src/locales/it/internet/index.ts
index 64484b1b..c73e7beb 100644
--- a/src/locales/it/internet/index.ts
+++ b/src/locales/it/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/it/name/index.ts b/src/locales/it/name/index.ts
index 40d909eb..c674f1a4 100644
--- a/src/locales/it/name/index.ts
+++ b/src/locales/it/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 last_name from './last_name';
@@ -6,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: any = {
+const name: Partial<NameDefinitions> = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/it/phone_number/index.ts b/src/locales/it/phone_number/index.ts
index f760b9e1..bf48a8b5 100644
--- a/src/locales/it/phone_number/index.ts
+++ b/src/locales/it/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,
};