aboutsummaryrefslogtreecommitdiff
path: root/src/locales/ja
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/ja
parent6afa92b7471cf3e4170c8063e7b01ee68321e546 (diff)
downloadfaker-419e9e20a570b44909faf24c9019bf7f232ee7a9.tar.xz
faker-419e9e20a570b44909faf24c9019bf7f232ee7a9.zip
feat(types): provide strong typing for locales 2 (#398)
Diffstat (limited to 'src/locales/ja')
-rw-r--r--src/locales/ja/address/index.ts9
-rw-r--r--src/locales/ja/index.ts8
-rw-r--r--src/locales/ja/lorem/index.ts9
-rw-r--r--src/locales/ja/name/index.ts7
-rw-r--r--src/locales/ja/phone_number/index.ts7
5 files changed, 32 insertions, 8 deletions
diff --git a/src/locales/ja/address/index.ts b/src/locales/ja/address/index.ts
index 963182d3..3d45d62f 100644
--- a/src/locales/ja/address/index.ts
+++ b/src/locales/ja/address/index.ts
@@ -1,3 +1,8 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { AddressDefinitions } from '../../..';
import city from './city';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
@@ -7,7 +12,7 @@ import state from './state';
import state_abbr from './state_abbr';
import street_name from './street_name';
-const address: any = {
+const address = {
city,
city_prefix,
city_suffix,
@@ -16,6 +21,6 @@ const address: any = {
state,
state_abbr,
street_name,
-};
+} as Partial<AddressDefinitions>;
export default address;
diff --git a/src/locales/ja/index.ts b/src/locales/ja/index.ts
index a28c821e..151c8bdb 100644
--- a/src/locales/ja/index.ts
+++ b/src/locales/ja/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 cell_phone from './cell_phone';
import lorem from './lorem';
-import name from './name';
+import name_ from './name';
import phone_number from './phone_number';
const ja: LocaleDefinition = {
@@ -10,7 +14,7 @@ const ja: LocaleDefinition = {
address,
cell_phone,
lorem,
- name,
+ name: name_,
phone_number,
};
diff --git a/src/locales/ja/lorem/index.ts b/src/locales/ja/lorem/index.ts
index 62962376..e1929cf1 100644
--- a/src/locales/ja/lorem/index.ts
+++ b/src/locales/ja/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/ja/name/index.ts b/src/locales/ja/name/index.ts
index 13139f18..ad3a9da3 100644
--- a/src/locales/ja/name/index.ts
+++ b/src/locales/ja/name/index.ts
@@ -1,8 +1,13 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { NameDefinitions } from '../../..';
import first_name from './first_name';
import last_name from './last_name';
import name_ from './name';
-const name: any = {
+const name: Partial<NameDefinitions> = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/ja/phone_number/index.ts b/src/locales/ja/phone_number/index.ts
index f760b9e1..bf48a8b5 100644
--- a/src/locales/ja/phone_number/index.ts
+++ b/src/locales/ja/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,
};