aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/generateLocales.ts107
-rw-r--r--src/definitions/address.ts8
-rw-r--r--src/definitions/animal.ts6
-rw-r--r--src/definitions/commerce.ts6
-rw-r--r--src/definitions/company.ts6
-rw-r--r--src/definitions/database.ts6
-rw-r--r--src/definitions/date.ts6
-rw-r--r--src/definitions/definitions.ts16
-rw-r--r--src/definitions/finance.ts6
-rw-r--r--src/definitions/hacker.ts6
-rw-r--r--src/definitions/index.ts2
-rw-r--r--src/definitions/internet.ts5
-rw-r--r--src/definitions/lorem.ts6
-rw-r--r--src/definitions/music.ts6
-rw-r--r--src/definitions/name.ts6
-rw-r--r--src/definitions/phone_number.ts6
-rw-r--r--src/definitions/system.ts6
-rw-r--r--src/definitions/vehicle.ts6
-rw-r--r--src/definitions/word.ts6
-rw-r--r--src/locales/af_ZA/address/index.ts4
-rw-r--r--src/locales/af_ZA/company/index.ts2
-rw-r--r--src/locales/af_ZA/internet/index.ts2
-rw-r--r--src/locales/af_ZA/name/index.ts2
-rw-r--r--src/locales/ar/address/index.ts4
-rw-r--r--src/locales/ar/commerce/index.ts2
-rw-r--r--src/locales/ar/name/index.ts2
-rw-r--r--src/locales/ar/vehicle/index.ts2
-rw-r--r--src/locales/az/address/index.ts4
-rw-r--r--src/locales/az/commerce/index.ts2
-rw-r--r--src/locales/az/company/index.ts4
-rw-r--r--src/locales/az/internet/index.ts2
-rw-r--r--src/locales/az/name/index.ts2
-rw-r--r--src/locales/cz/address/index.ts4
-rw-r--r--src/locales/cz/company/index.ts4
-rw-r--r--src/locales/cz/internet/index.ts2
-rw-r--r--src/locales/cz/name/index.ts2
-rw-r--r--src/locales/de/address/index.ts4
-rw-r--r--src/locales/de/company/index.ts4
-rw-r--r--src/locales/de/internet/index.ts2
-rw-r--r--src/locales/de/name/index.ts4
-rw-r--r--src/locales/de_AT/address/index.ts4
-rw-r--r--src/locales/de_AT/company/index.ts4
-rw-r--r--src/locales/de_AT/internet/index.ts2
-rw-r--r--src/locales/de_AT/name/index.ts4
-rw-r--r--src/locales/de_CH/address/index.ts4
-rw-r--r--src/locales/de_CH/company/index.ts4
-rw-r--r--src/locales/de_CH/internet/index.ts2
-rw-r--r--src/locales/de_CH/name/index.ts2
-rw-r--r--src/locales/el/address/index.ts4
-rw-r--r--src/locales/el/commerce/index.ts2
-rw-r--r--src/locales/el/company/index.ts4
-rw-r--r--src/locales/el/hacker/index.ts2
-rw-r--r--src/locales/el/internet/index.ts2
-rw-r--r--src/locales/el/name/index.ts2
-rw-r--r--src/locales/en/address/index.ts4
-rw-r--r--src/locales/en/company/index.ts4
-rw-r--r--src/locales/en/internet/index.ts4
-rw-r--r--src/locales/en/lorem/index.ts4
-rw-r--r--src/locales/en/name/index.ts2
-rw-r--r--src/locales/en_AU/address/index.ts4
-rw-r--r--src/locales/en_AU/company/index.ts2
-rw-r--r--src/locales/en_AU/internet/index.ts2
-rw-r--r--src/locales/en_AU/name/index.ts2
-rw-r--r--src/locales/en_AU_ocker/address/index.ts4
-rw-r--r--src/locales/en_AU_ocker/company/index.ts2
-rw-r--r--src/locales/en_AU_ocker/internet/index.ts2
-rw-r--r--src/locales/en_AU_ocker/name/index.ts4
-rw-r--r--src/locales/en_CA/address/index.ts4
-rw-r--r--src/locales/en_CA/internet/index.ts2
-rw-r--r--src/locales/en_GB/address/index.ts4
-rw-r--r--src/locales/en_GB/internet/index.ts2
-rw-r--r--src/locales/en_GH/address/index.ts4
-rw-r--r--src/locales/en_GH/company/index.ts4
-rw-r--r--src/locales/en_GH/internet/index.ts2
-rw-r--r--src/locales/en_GH/name/index.ts2
-rw-r--r--src/locales/en_IE/address/index.ts4
-rw-r--r--src/locales/en_IE/internet/index.ts2
-rw-r--r--src/locales/en_IND/address/index.ts4
-rw-r--r--src/locales/en_IND/company/index.ts2
-rw-r--r--src/locales/en_IND/internet/index.ts2
-rw-r--r--src/locales/en_IND/name/index.ts2
-rw-r--r--src/locales/en_NG/address/index.ts4
-rw-r--r--src/locales/en_NG/company/index.ts2
-rw-r--r--src/locales/en_NG/internet/index.ts2
-rw-r--r--src/locales/en_NG/name/index.ts2
-rw-r--r--src/locales/en_US/address/index.ts4
-rw-r--r--src/locales/en_US/internet/index.ts2
-rw-r--r--src/locales/en_US/phone_number/index.ts4
-rw-r--r--src/locales/en_ZA/address/index.ts4
-rw-r--r--src/locales/en_ZA/company/index.ts2
-rw-r--r--src/locales/en_ZA/internet/index.ts2
-rw-r--r--src/locales/en_ZA/name/index.ts2
-rw-r--r--src/locales/en_ZA/phone_number/index.ts4
-rw-r--r--src/locales/es/address/index.ts4
-rw-r--r--src/locales/es/commerce/index.ts2
-rw-r--r--src/locales/es/company/index.ts4
-rw-r--r--src/locales/es/internet/index.ts2
-rw-r--r--src/locales/es/name/index.ts2
-rw-r--r--src/locales/es_MX/address/index.ts4
-rw-r--r--src/locales/es_MX/commerce/index.ts2
-rw-r--r--src/locales/es_MX/company/index.ts4
-rw-r--r--src/locales/es_MX/internet/index.ts2
-rw-r--r--src/locales/es_MX/name/index.ts2
-rw-r--r--src/locales/fa/address/index.ts4
-rw-r--r--src/locales/fa/commerce/index.ts2
-rw-r--r--src/locales/fa/company/index.ts4
-rw-r--r--src/locales/fa/internet/index.ts2
-rw-r--r--src/locales/fa/name/index.ts2
-rw-r--r--src/locales/fa/vehicle/index.ts2
-rw-r--r--src/locales/fi/name/index.ts2
-rw-r--r--src/locales/fr/address/index.ts4
-rw-r--r--src/locales/fr/company/index.ts4
-rw-r--r--src/locales/fr/internet/index.ts2
-rw-r--r--src/locales/fr/name/index.ts2
-rw-r--r--src/locales/fr_BE/address/index.ts4
-rw-r--r--src/locales/fr_BE/internet/index.ts2
-rw-r--r--src/locales/fr_BE/name/index.ts2
-rw-r--r--src/locales/fr_CA/address/index.ts4
-rw-r--r--src/locales/fr_CA/internet/index.ts2
-rw-r--r--src/locales/fr_CH/address/index.ts4
-rw-r--r--src/locales/fr_CH/internet/index.ts2
-rw-r--r--src/locales/ge/address/index.ts4
-rw-r--r--src/locales/ge/company/index.ts4
-rw-r--r--src/locales/ge/internet/index.ts2
-rw-r--r--src/locales/ge/name/index.ts2
-rw-r--r--src/locales/he/address/index.ts4
-rw-r--r--src/locales/he/lorem/index.ts4
-rw-r--r--src/locales/he/name/index.ts2
-rw-r--r--src/locales/hr/address/index.ts4
-rw-r--r--src/locales/hr/internet/index.ts2
-rw-r--r--src/locales/hr/name/index.ts2
-rw-r--r--src/locales/hu/animal/index.ts2
-rw-r--r--src/locales/hu/finance/index.ts2
-rw-r--r--src/locales/hu/internet/index.ts2
-rw-r--r--src/locales/hu/name/index.ts2
-rw-r--r--src/locales/hu/word/index.ts2
-rw-r--r--src/locales/hy/address/index.ts4
-rw-r--r--src/locales/hy/commerce/index.ts2
-rw-r--r--src/locales/hy/internet/index.ts2
-rw-r--r--src/locales/hy/name/index.ts2
-rw-r--r--src/locales/id_ID/address/index.ts4
-rw-r--r--src/locales/id_ID/company/index.ts4
-rw-r--r--src/locales/id_ID/internet/index.ts2
-rw-r--r--src/locales/id_ID/name/index.ts4
-rw-r--r--src/locales/it/address/index.ts4
-rw-r--r--src/locales/it/company/index.ts4
-rw-r--r--src/locales/it/internet/index.ts2
-rw-r--r--src/locales/it/name/index.ts2
-rw-r--r--src/locales/ja/address/index.ts4
-rw-r--r--src/locales/ja/lorem/index.ts4
-rw-r--r--src/locales/ja/name/index.ts2
-rw-r--r--src/locales/ko/address/index.ts4
-rw-r--r--src/locales/ko/company/index.ts4
-rw-r--r--src/locales/ko/internet/index.ts2
-rw-r--r--src/locales/ko/name/index.ts2
-rw-r--r--src/locales/lv/address/index.ts4
-rw-r--r--src/locales/lv/commerce/index.ts2
-rw-r--r--src/locales/lv/company/index.ts4
-rw-r--r--src/locales/lv/internet/index.ts2
-rw-r--r--src/locales/lv/lorem/index.ts4
-rw-r--r--src/locales/lv/name/index.ts2
-rw-r--r--src/locales/mk/address/index.ts4
-rw-r--r--src/locales/mk/company/index.ts4
-rw-r--r--src/locales/mk/internet/index.ts2
-rw-r--r--src/locales/mk/name/index.ts2
-rw-r--r--src/locales/nb_NO/address/index.ts4
-rw-r--r--src/locales/nb_NO/company/index.ts4
-rw-r--r--src/locales/nb_NO/internet/index.ts2
-rw-r--r--src/locales/nb_NO/name/index.ts2
-rw-r--r--src/locales/ne/address/index.ts4
-rw-r--r--src/locales/ne/company/index.ts2
-rw-r--r--src/locales/ne/internet/index.ts2
-rw-r--r--src/locales/ne/name/index.ts2
-rw-r--r--src/locales/nl/address/index.ts4
-rw-r--r--src/locales/nl/commerce/index.ts2
-rw-r--r--src/locales/nl/company/index.ts2
-rw-r--r--src/locales/nl/hacker/index.ts2
-rw-r--r--src/locales/nl/internet/index.ts2
-rw-r--r--src/locales/nl/name/index.ts4
-rw-r--r--src/locales/nl_BE/address/index.ts4
-rw-r--r--src/locales/nl_BE/company/index.ts2
-rw-r--r--src/locales/nl_BE/internet/index.ts2
-rw-r--r--src/locales/nl_BE/name/index.ts2
-rw-r--r--src/locales/pl/address/index.ts4
-rw-r--r--src/locales/pl/company/index.ts4
-rw-r--r--src/locales/pl/internet/index.ts2
-rw-r--r--src/locales/pl/name/index.ts2
-rw-r--r--src/locales/pt_BR/address/index.ts4
-rw-r--r--src/locales/pt_BR/commerce/index.ts2
-rw-r--r--src/locales/pt_BR/company/index.ts4
-rw-r--r--src/locales/pt_BR/internet/index.ts2
-rw-r--r--src/locales/pt_BR/name/index.ts2
-rw-r--r--src/locales/pt_PT/address/index.ts4
-rw-r--r--src/locales/pt_PT/commerce/index.ts2
-rw-r--r--src/locales/pt_PT/internet/index.ts2
-rw-r--r--src/locales/pt_PT/name/index.ts2
-rw-r--r--src/locales/ro/address/index.ts4
-rw-r--r--src/locales/ro/internet/index.ts2
-rw-r--r--src/locales/ro/name/index.ts2
-rw-r--r--src/locales/ru/address/index.ts4
-rw-r--r--src/locales/ru/commerce/index.ts2
-rw-r--r--src/locales/ru/company/index.ts4
-rw-r--r--src/locales/ru/internet/index.ts2
-rw-r--r--src/locales/ru/name/index.ts2
-rw-r--r--src/locales/sk/address/index.ts4
-rw-r--r--src/locales/sk/company/index.ts4
-rw-r--r--src/locales/sk/internet/index.ts2
-rw-r--r--src/locales/sk/name/index.ts2
-rw-r--r--src/locales/sv/address/index.ts4
-rw-r--r--src/locales/sv/commerce/index.ts2
-rw-r--r--src/locales/sv/company/index.ts4
-rw-r--r--src/locales/sv/internet/index.ts2
-rw-r--r--src/locales/sv/name/index.ts2
-rw-r--r--src/locales/tr/address/index.ts4
-rw-r--r--src/locales/tr/internet/index.ts2
-rw-r--r--src/locales/tr/name/index.ts2
-rw-r--r--src/locales/tr/phone_number/index.ts4
-rw-r--r--src/locales/uk/address/index.ts4
-rw-r--r--src/locales/uk/company/index.ts4
-rw-r--r--src/locales/uk/internet/index.ts2
-rw-r--r--src/locales/uk/name/index.ts2
-rw-r--r--src/locales/ur/address/index.ts4
-rw-r--r--src/locales/ur/animal/index.ts2
-rw-r--r--src/locales/ur/commerce/index.ts2
-rw-r--r--src/locales/ur/finance/index.ts2
-rw-r--r--src/locales/ur/lorem/index.ts4
-rw-r--r--src/locales/ur/name/index.ts2
-rw-r--r--src/locales/vi/address/index.ts4
-rw-r--r--src/locales/vi/company/index.ts4
-rw-r--r--src/locales/vi/internet/index.ts2
-rw-r--r--src/locales/vi/name/index.ts2
-rw-r--r--src/locales/zh_CN/address/index.ts4
-rw-r--r--src/locales/zh_CN/name/index.ts2
-rw-r--r--src/locales/zh_TW/address/index.ts4
-rw-r--r--src/locales/zh_TW/name/index.ts2
-rw-r--r--src/locales/zu_ZA/address/index.ts4
-rw-r--r--src/locales/zu_ZA/company/index.ts2
-rw-r--r--src/locales/zu_ZA/internet/index.ts2
-rw-r--r--src/locales/zu_ZA/name/index.ts2
239 files changed, 443 insertions, 407 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts
index fc2c7ebc..7e2ca837 100644
--- a/scripts/generateLocales.ts
+++ b/scripts/generateLocales.ts
@@ -17,8 +17,7 @@ import { resolve } from 'node:path';
import type { Options } from 'prettier';
import { format } from 'prettier';
import options from '../.prettierrc.cjs';
-import type { LocaleDefinition } from '../src/definitions';
-import { DEFINITIONS } from '../src/definitions';
+import type { Definitions, LocaleDefinition } from '../src/definitions';
// Constants
@@ -33,6 +32,37 @@ const pathDocsApiLocalization = resolve(
'localization.md'
);
+// Workaround for nameOf<T>
+type PascalCase<S extends string> = S extends `${infer P1}_${infer P2}`
+ ? `${Capitalize<P1>}${PascalCase<P2>}`
+ : Capitalize<S>;
+
+type DefinitionsType = {
+ [key in keyof Definitions]: PascalCase<`${key}Definitions`>;
+};
+
+/**
+ * The types of the definitions.
+ */
+const definitionsTypes: DefinitionsType = {
+ address: 'AddressDefinitions',
+ animal: 'AnimalDefinitions',
+ commerce: 'CommerceDefinitions',
+ company: 'CompanyDefinitions',
+ database: 'DatabaseDefinitions',
+ date: 'DateDefinitions',
+ finance: 'FinanceDefinitions',
+ hacker: 'HackerDefinitions',
+ internet: 'InternetDefinitions',
+ lorem: 'LoremDefinitions',
+ music: 'MusicDefinitions',
+ name: 'NameDefinitions',
+ phone_number: 'PhoneNumberDefinitions',
+ system: 'SystemDefinitions',
+ vehicle: 'VehicleDefinitions',
+ word: 'WordDefinitions',
+};
+
const prettierTsOptions: Options = { ...options, parser: 'typescript' };
const prettierMdOptions: Options = { ...options, parser: 'markdown' };
@@ -73,13 +103,6 @@ function escapeField(module: string): string {
}
}
-function containsAll(checked?: string[], expected?: string[]): boolean {
- if (expected == null || checked == null) {
- return true;
- }
- return expected.every((c) => checked.includes(c));
-}
-
function generateLocaleFile(locale: string): void {
let content = `
${autoGeneratedCommentHeader}
@@ -135,43 +158,37 @@ function generateLocalesIndexFile(
name: string,
type: string,
depth: number,
- extra: string = '',
- expected?: string[]
+ extra: string = ''
): void {
let modules = readdirSync(path);
modules = removeIndexTs(modules);
modules = removeTsSuffix(modules);
- const importType = type;
- if (!containsAll(modules, expected)) {
- type = `Partial<${type}>`;
- }
+
+ const content = [autoGeneratedCommentHeader];
let fieldType = '';
- let asType = '';
- if (!containsAll(expected, modules)) {
- asType = ` as ${type}`;
- } else if (type !== 'any') {
- fieldType = `: ${type}`;
- }
- let content = `${autoGeneratedCommentHeader}\n`;
if (type !== 'any') {
- content += ` import type { ${importType.replace(
- /\[.*/,
- ''
- )} } from '..${'/..'.repeat(depth)}';\n`;
+ fieldType = `: ${type}`;
+ content.push(
+ `import type { ${type.replace(/\[.*/, '')} } from '..${'/..'.repeat(
+ depth
+ )}';\n`
+ );
}
- content += ` ${modules
- .map((module) => `import ${escapeImport(module)} from './${module}';`)
- .join('\n')}
+ content.push(
+ ...modules.map((m) => `import ${escapeImport(m)} from './${m}';`)
+ );
- const ${name}${fieldType} = {
+ content.push(`\nconst ${name}${fieldType} = {
${extra}
${modules.map((module) => `${escapeField(module)},`).join('\n')}
- }${asType};
+ };\n`);
- export default ${name};
- `;
- content = format(content, prettierTsOptions);
- writeFileSync(resolve(path, 'index.ts'), content);
+ content.push(`export default ${name};`);
+
+ writeFileSync(
+ resolve(path, 'index.ts'),
+ format(content.join('\n'), prettierTsOptions)
+ );
}
function generateRecursiveModuleIndexes(
@@ -179,10 +196,9 @@ function generateRecursiveModuleIndexes(
name: string,
definition: string,
depth: number,
- extra?: string,
- moduleFiles?: string[]
+ extra?: string
): void {
- generateLocalesIndexFile(path, name, definition, depth, extra, moduleFiles);
+ generateLocalesIndexFile(path, name, definition, depth, extra);
let submodules = readdirSync(path);
submodules = removeIndexTs(submodules);
@@ -193,18 +209,10 @@ function generateRecursiveModuleIndexes(
if (lstatSync(pathModule).isDirectory()) {
let moduleDefinition =
definition === 'any' ? 'any' : `${definition}['${submodule}']`;
- let moduleFiles: string[];
- // Overwrite types of src/locales/<locale>/<module>/index.ts for known DEFINITIONS
+ // Overwrite types of src/locales/<locale>/<module>/index.ts for known definition types
if (depth === 1) {
- moduleFiles = DEFINITIONS[submodule];
- if (moduleFiles == null) {
- moduleDefinition = 'any';
- } else {
- moduleDefinition = `${submodule.replace(/(^|_)([a-z])/g, (s) =>
- s.replace('_', '').toUpperCase()
- )}Definitions`;
- }
+ moduleDefinition = definitionsTypes[submodule] ?? 'any';
}
// Recursive
@@ -213,8 +221,7 @@ function generateRecursiveModuleIndexes(
submodule,
moduleDefinition,
depth + 1,
- undefined,
- moduleFiles
+ undefined
);
}
}
diff --git a/src/definitions/address.ts b/src/definitions/address.ts
index 6552f39a..a7300e5f 100644
--- a/src/definitions/address.ts
+++ b/src/definitions/address.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to addresses.
*/
-export interface AddressDefinitions {
+export type AddressDefinitions = LocaleEntry<{
/**
* Postcodes patterns by state
*/
@@ -14,7 +16,7 @@ export interface AddressDefinitions {
/**
* Names of actual cities
*/
- city_name?: string[];
+ city_name: string[];
/**
* Common city prefixes
*/
@@ -96,4 +98,4 @@ export interface AddressDefinitions {
// A list of timezones names.
time_zone: string[];
-}
+}>;
diff --git a/src/definitions/animal.ts b/src/definitions/animal.ts
index d056e402..58e493e5 100644
--- a/src/definitions/animal.ts
+++ b/src/definitions/animal.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to animals.
*/
-export interface AnimalDefinitions {
+export type AnimalDefinitions = LocaleEntry<{
bear: string[];
bird: string[];
cat: string[];
@@ -16,4 +18,4 @@ export interface AnimalDefinitions {
rabbit: string[];
snake: string[];
type: string[];
-}
+}>;
diff --git a/src/definitions/commerce.ts b/src/definitions/commerce.ts
index eb106463..65aef4ba 100644
--- a/src/definitions/commerce.ts
+++ b/src/definitions/commerce.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to commerce.
*/
-export interface CommerceDefinitions {
+export type CommerceDefinitions = LocaleEntry<{
/**
* Human readable color names
*/
@@ -18,7 +20,7 @@ export interface CommerceDefinitions {
* Descriptions for products.
*/
product_description: string[];
-}
+}>;
/**
* The possible definitions related to product name generation.
diff --git a/src/definitions/company.ts b/src/definitions/company.ts
index 89999ced..5b98bcc5 100644
--- a/src/definitions/company.ts
+++ b/src/definitions/company.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to companies.
*/
-export interface CompanyDefinitions {
+export type CompanyDefinitions = LocaleEntry<{
/**
* Business/products related adjectives.
*/
@@ -30,4 +32,4 @@ export interface CompanyDefinitions {
* Company suffixes
*/
suffix: string[];
-}
+}>;
diff --git a/src/definitions/database.ts b/src/definitions/database.ts
index 47ab603d..776f5361 100644
--- a/src/definitions/database.ts
+++ b/src/definitions/database.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to databases.
*/
-export interface DatabaseDefinitions {
+export type DatabaseDefinitions = LocaleEntry<{
/**
* Database Engine
*/
@@ -18,4 +20,4 @@ export interface DatabaseDefinitions {
* Column types
*/
type: string[];
-}
+}>;
diff --git a/src/definitions/date.ts b/src/definitions/date.ts
index a6d74722..2f014f55 100644
--- a/src/definitions/date.ts
+++ b/src/definitions/date.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to dates.
*/
-export interface DateDefinitions {
+export type DateDefinitions = LocaleEntry<{
/**
* The translations for months (January - December).
*/
@@ -10,7 +12,7 @@ export interface DateDefinitions {
* The translations for weekdays (Sunday - Saturday).
*/
weekday: DateEntryDefinition;
-}
+}>;
/**
* The possible definitions related to date entries.
diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts
index a338cc83..fae443ba 100644
--- a/src/definitions/definitions.ts
+++ b/src/definitions/definitions.ts
@@ -15,10 +15,15 @@ import type { SystemDefinitions } from './system';
import type { VehicleDefinitions } from './vehicle';
import type { WordDefinitions } from './word';
+export type LocaleEntry<T> = Partial<T> &
+ // Unsupported & custom modules
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ Record<string, any>;
+
/**
* The definitions as used by the Faker modules.
*/
-interface Definitions {
+export interface Definitions {
address: AddressDefinitions;
animal: AnimalDefinitions;
commerce: CommerceDefinitions;
@@ -48,11 +53,4 @@ export type LocaleDefinition = {
*/
title: string;
separator?: string;
-} & {
- // Known modules
- [module in keyof Definitions]?: Partial<Definitions[module]>;
-} & {
- // Unsupported & custom modules
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- [group: string]: any;
-};
+} & LocaleEntry<Definitions>;
diff --git a/src/definitions/finance.ts b/src/definitions/finance.ts
index e5f4553b..d2c26283 100644
--- a/src/definitions/finance.ts
+++ b/src/definitions/finance.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to finances.
*/
-export interface FinanceDefinitions {
+export type FinanceDefinitions = LocaleEntry<{
/**
* The types of accounts/purposes of an account (e.g. `Savings` account).
*/
@@ -21,7 +23,7 @@ export interface FinanceDefinitions {
* Types of transactions (e.g. `deposit`).
*/
transaction_type: string[];
-}
+}>;
/**
* The possible definitions related to currency entries.
diff --git a/src/definitions/hacker.ts b/src/definitions/hacker.ts
index 8a23c88a..e6790839 100644
--- a/src/definitions/hacker.ts
+++ b/src/definitions/hacker.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to computers.
*/
-export interface HackerDefinitions {
+export type HackerDefinitions = LocaleEntry<{
/**
* Generic computer related abbreviations (e.g. `RAM`, `EXE`).
*/
@@ -30,4 +32,4 @@ export interface HackerDefinitions {
* Some computer related verbs (e.g. `hack`).
*/
verb: string[];
-}
+}>;
diff --git a/src/definitions/index.ts b/src/definitions/index.ts
index 70555b0e..bcfcab0f 100644
--- a/src/definitions/index.ts
+++ b/src/definitions/index.ts
@@ -7,7 +7,7 @@ export type {
export type { CompanyDefinitions } from './company';
export type { DatabaseDefinitions } from './database';
export type { DateDefinitions, DateEntryDefinition } from './date';
-export type { LocaleDefinition } from './definitions';
+export type { Definitions, LocaleDefinition } from './definitions';
export type {
FinanceCurrencyEntryDefinitions,
FinanceDefinitions,
diff --git a/src/definitions/internet.ts b/src/definitions/internet.ts
index e81871f6..96a79a76 100644
--- a/src/definitions/internet.ts
+++ b/src/definitions/internet.ts
@@ -1,9 +1,10 @@
import type { EmojiType } from '../modules/internet';
+import type { LocaleEntry } from './definitions';
/**
* The possible definitions related to internet stuff.
*/
-export interface InternetDefinitions {
+export type InternetDefinitions = LocaleEntry<{
/**
* Common top level and similar domains (e.g `de`, `co.uk`).
*/
@@ -20,4 +21,4 @@ export interface InternetDefinitions {
* List of all fully-qualified emojis.
*/
emoji: Record<EmojiType, string[]>;
-}
+}>;
diff --git a/src/definitions/lorem.ts b/src/definitions/lorem.ts
index 202a527f..4d851b30 100644
--- a/src/definitions/lorem.ts
+++ b/src/definitions/lorem.ts
@@ -1,9 +1,11 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to lorem texts.
*/
-export interface LoremDefinitions {
+export type LoremDefinitions = LocaleEntry<{
/**
* Lorem words used to generate dummy texts.
*/
words: string[];
-}
+}>;
diff --git a/src/definitions/music.ts b/src/definitions/music.ts
index eaa340ae..3e2842d5 100644
--- a/src/definitions/music.ts
+++ b/src/definitions/music.ts
@@ -1,9 +1,11 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to music.
*/
-export interface MusicDefinitions {
+export type MusicDefinitions = LocaleEntry<{
/**
* The names of some music genres.
*/
genre: string[];
-}
+}>;
diff --git a/src/definitions/name.ts b/src/definitions/name.ts
index a5156410..9098a66a 100644
--- a/src/definitions/name.ts
+++ b/src/definitions/name.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to people's names.
*/
-export interface NameDefinitions {
+export type NameDefinitions = LocaleEntry<{
gender: string[];
binary_gender: string[];
@@ -29,7 +31,7 @@ export interface NameDefinitions {
name: string[];
title: NameTitleDefinitions;
-}
+}>;
/**
* The possible definitions related to people's titles.
diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts
index 1fb69ad2..3f805ea7 100644
--- a/src/definitions/phone_number.ts
+++ b/src/definitions/phone_number.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to phone numbers.
*/
-export interface PhoneNumberDefinitions {
+export type PhoneNumberDefinitions = LocaleEntry<{
/**
* Some patterns used to generate phone numbers.
* `#` will be replaced by a random digit (0-9).
@@ -11,4 +13,4 @@ export interface PhoneNumberDefinitions {
* @see Helpers.replaceSymbolWithNumber(format)
*/
formats: string[];
-}
+}>;
diff --git a/src/definitions/system.ts b/src/definitions/system.ts
index c3e25232..c6aa16c7 100644
--- a/src/definitions/system.ts
+++ b/src/definitions/system.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to files and the system.
*/
-export interface SystemDefinitions {
+export type SystemDefinitions = LocaleEntry<{
/**
* Returns some common file paths.
*/
@@ -10,7 +12,7 @@ export interface SystemDefinitions {
* The mime type definitions with some additional information.
*/
mimeTypes: { [mimeType: string]: SystemMimeTypeEntryDefinitions };
-}
+}>;
/**
* The mime type entry details.
diff --git a/src/definitions/vehicle.ts b/src/definitions/vehicle.ts
index 71c35851..8904a9eb 100644
--- a/src/definitions/vehicle.ts
+++ b/src/definitions/vehicle.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to vehicles.
*/
-export interface VehicleDefinitions {
+export type VehicleDefinitions = LocaleEntry<{
/**
* Some types of bicycles.
*/
@@ -22,4 +24,4 @@ export interface VehicleDefinitions {
* Some types of vehicles (e.g. `Minivan`).
*/
type: string[];
-}
+}>;
diff --git a/src/definitions/word.ts b/src/definitions/word.ts
index 3e502215..c705de82 100644
--- a/src/definitions/word.ts
+++ b/src/definitions/word.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to words.
*/
-export interface WordDefinitions {
+export type WordDefinitions = LocaleEntry<{
adjective: string[];
adverb: string[];
conjunction: string[];
@@ -9,4 +11,4 @@ export interface WordDefinitions {
noun: string[];
preposition: string[];
verb: string[];
-}
+}>;
diff --git a/src/locales/af_ZA/address/index.ts b/src/locales/af_ZA/address/index.ts
index 0e939ead..0d9219e7 100644
--- a/src/locales/af_ZA/address/index.ts
+++ b/src/locales/af_ZA/address/index.ts
@@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..';
import default_country from './default_country';
import postcode from './postcode';
-const address = {
+const address: AddressDefinitions = {
default_country,
postcode,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/af_ZA/company/index.ts b/src/locales/af_ZA/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/af_ZA/company/index.ts
+++ b/src/locales/af_ZA/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/af_ZA/internet/index.ts b/src/locales/af_ZA/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/af_ZA/internet/index.ts
+++ b/src/locales/af_ZA/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/af_ZA/name/index.ts b/src/locales/af_ZA/name/index.ts
index c90a45ef..ea2e9181 100644
--- a/src/locales/af_ZA/name/index.ts
+++ b/src/locales/af_ZA/name/index.ts
@@ -8,7 +8,7 @@ import first_name from './first_name';
import last_name from './last_name';
import male_first_name from './male_first_name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/ar/address/index.ts b/src/locales/ar/address/index.ts
index 7789c0e5..17f2bed9 100644
--- a/src/locales/ar/address/index.ts
+++ b/src/locales/ar/address/index.ts
@@ -15,7 +15,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_prefix from './street_prefix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -27,6 +27,6 @@ const address = {
street_address,
street_name,
street_prefix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ar/commerce/index.ts b/src/locales/ar/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/ar/commerce/index.ts
+++ b/src/locales/ar/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/ar/name/index.ts b/src/locales/ar/name/index.ts
index b8cd692a..8018f95e 100644
--- a/src/locales/ar/name/index.ts
+++ b/src/locales/ar/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/ar/vehicle/index.ts b/src/locales/ar/vehicle/index.ts
index 6735cd53..826d25a0 100644
--- a/src/locales/ar/vehicle/index.ts
+++ b/src/locales/ar/vehicle/index.ts
@@ -8,7 +8,7 @@ import manufacturer from './manufacturer';
import model from './model';
import type_ from './type';
-const vehicle: Partial<VehicleDefinitions> = {
+const vehicle: VehicleDefinitions = {
fuel,
manufacturer,
model,
diff --git a/src/locales/az/address/index.ts b/src/locales/az/address/index.ts
index 22f6789f..c4e5091a 100644
--- a/src/locales/az/address/index.ts
+++ b/src/locales/az/address/index.ts
@@ -16,7 +16,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import street_title from './street_title';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_name,
street_suffix,
street_title,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/az/commerce/index.ts b/src/locales/az/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/az/commerce/index.ts
+++ b/src/locales/az/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/az/company/index.ts b/src/locales/az/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/az/company/index.ts
+++ b/src/locales/az/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/az/internet/index.ts b/src/locales/az/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/az/internet/index.ts
+++ b/src/locales/az/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/az/name/index.ts b/src/locales/az/name/index.ts
index 8cf3afff..740c83d0 100644
--- a/src/locales/az/name/index.ts
+++ b/src/locales/az/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
male_first_name,
diff --git a/src/locales/cz/address/index.ts b/src/locales/cz/address/index.ts
index 7a0acff7..8222f809 100644
--- a/src/locales/cz/address/index.ts
+++ b/src/locales/cz/address/index.ts
@@ -16,7 +16,7 @@ import street from './street';
import street_address from './street_address';
import street_name from './street_name';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street,
street_address,
street_name,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/cz/company/index.ts b/src/locales/cz/company/index.ts
index c4694c68..1b69a9d1 100644
--- a/src/locales/cz/company/index.ts
+++ b/src/locales/cz/company/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_noun,
bs_verb,
@@ -19,6 +19,6 @@ const company = {
name: name_,
noun,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/cz/internet/index.ts b/src/locales/cz/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/cz/internet/index.ts
+++ b/src/locales/cz/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/cz/name/index.ts b/src/locales/cz/name/index.ts
index 3c856e22..7c9ae183 100644
--- a/src/locales/cz/name/index.ts
+++ b/src/locales/cz/name/index.ts
@@ -14,7 +14,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
first_name,
diff --git a/src/locales/de/address/index.ts b/src/locales/de/address/index.ts
index 0da91602..77edabd8 100644
--- a/src/locales/de/address/index.ts
+++ b/src/locales/de/address/index.ts
@@ -17,7 +17,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_root from './street_root';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -31,6 +31,6 @@ const address = {
street_address,
street_name,
street_root,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/de/company/index.ts b/src/locales/de/company/index.ts
index d43fc701..312df0c6 100644
--- a/src/locales/de/company/index.ts
+++ b/src/locales/de/company/index.ts
@@ -7,10 +7,10 @@ import legal_form from './legal_form';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
legal_form,
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/de/internet/index.ts b/src/locales/de/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/de/internet/index.ts
+++ b/src/locales/de/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/de/name/index.ts b/src/locales/de/name/index.ts
index 59f7cc30..ffa039e9 100644
--- a/src/locales/de/name/index.ts
+++ b/src/locales/de/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import nobility_title_prefix from './nobility_title_prefix';
import prefix from './prefix';
-const name = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
@@ -19,6 +19,6 @@ const name = {
name: name_,
nobility_title_prefix,
prefix,
-} as Partial<NameDefinitions>;
+};
export default name;
diff --git a/src/locales/de_AT/address/index.ts b/src/locales/de_AT/address/index.ts
index 88811abd..f443e582 100644
--- a/src/locales/de_AT/address/index.ts
+++ b/src/locales/de_AT/address/index.ts
@@ -16,7 +16,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_root from './street_root';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_root,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/de_AT/company/index.ts b/src/locales/de_AT/company/index.ts
index d43fc701..312df0c6 100644
--- a/src/locales/de_AT/company/index.ts
+++ b/src/locales/de_AT/company/index.ts
@@ -7,10 +7,10 @@ import legal_form from './legal_form';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
legal_form,
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/de_AT/internet/index.ts b/src/locales/de_AT/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/de_AT/internet/index.ts
+++ b/src/locales/de_AT/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/de_AT/name/index.ts b/src/locales/de_AT/name/index.ts
index 3612b7ba..d7fee674 100644
--- a/src/locales/de_AT/name/index.ts
+++ b/src/locales/de_AT/name/index.ts
@@ -9,12 +9,12 @@ import name_ from './name';
import nobility_title_prefix from './nobility_title_prefix';
import prefix from './prefix';
-const name = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
nobility_title_prefix,
prefix,
-} as Partial<NameDefinitions>;
+};
export default name;
diff --git a/src/locales/de_CH/address/index.ts b/src/locales/de_CH/address/index.ts
index 99dcf81b..a11f61d7 100644
--- a/src/locales/de_CH/address/index.ts
+++ b/src/locales/de_CH/address/index.ts
@@ -11,7 +11,7 @@ import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
-const address = {
+const address: AddressDefinitions = {
city,
city_name,
country_code,
@@ -19,6 +19,6 @@ const address = {
postcode,
state,
state_abbr,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/de_CH/company/index.ts b/src/locales/de_CH/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/de_CH/company/index.ts
+++ b/src/locales/de_CH/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/de_CH/internet/index.ts b/src/locales/de_CH/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/de_CH/internet/index.ts
+++ b/src/locales/de_CH/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/de_CH/name/index.ts b/src/locales/de_CH/name/index.ts
index bb662643..da97abbf 100644
--- a/src/locales/de_CH/name/index.ts
+++ b/src/locales/de_CH/name/index.ts
@@ -8,7 +8,7 @@ import last_name from './last_name';
import name_ from './name';
import prefix from './prefix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/el/address/index.ts b/src/locales/el/address/index.ts
index 365551dc..d6efb162 100644
--- a/src/locales/el/address/index.ts
+++ b/src/locales/el/address/index.ts
@@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..';
import county from './county';
import default_country from './default_country';
-const address = {
+const address: AddressDefinitions = {
county,
default_country,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/el/commerce/index.ts b/src/locales/el/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/el/commerce/index.ts
+++ b/src/locales/el/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/el/company/index.ts b/src/locales/el/company/index.ts
index a3e1cf1a..abdbc9f5 100644
--- a/src/locales/el/company/index.ts
+++ b/src/locales/el/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/el/hacker/index.ts b/src/locales/el/hacker/index.ts
index 181218e2..2eecf444 100644
--- a/src/locales/el/hacker/index.ts
+++ b/src/locales/el/hacker/index.ts
@@ -8,7 +8,7 @@ import adjective from './adjective';
import noun from './noun';
import verb from './verb';
-const hacker: Partial<HackerDefinitions> = {
+const hacker: HackerDefinitions = {
abbreviation,
adjective,
noun,
diff --git a/src/locales/el/internet/index.ts b/src/locales/el/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/el/internet/index.ts
+++ b/src/locales/el/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/el/name/index.ts b/src/locales/el/name/index.ts
index 77b4c2eb..e0c74acd 100644
--- a/src/locales/el/name/index.ts
+++ b/src/locales/el/name/index.ts
@@ -9,7 +9,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/en/address/index.ts b/src/locales/en/address/index.ts
index 78cb3ec8..60c8078d 100644
--- a/src/locales/en/address/index.ts
+++ b/src/locales/en/address/index.ts
@@ -24,7 +24,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import time_zone from './time_zone';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -45,6 +45,6 @@ const address = {
street_name,
street_suffix,
time_zone,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en/company/index.ts b/src/locales/en/company/index.ts
index a3e1cf1a..abdbc9f5 100644
--- a/src/locales/en/company/index.ts
+++ b/src/locales/en/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/en/internet/index.ts b/src/locales/en/internet/index.ts
index 495d9b6f..9da00b43 100644
--- a/src/locales/en/internet/index.ts
+++ b/src/locales/en/internet/index.ts
@@ -9,12 +9,12 @@ import emoji from './emoji';
import example_email from './example_email';
import free_email from './free_email';
-const internet = {
+const internet: InternetDefinitions = {
avatar_uri,
domain_suffix,
emoji,
example_email,
free_email,
-} as InternetDefinitions;
+};
export default internet;
diff --git a/src/locales/en/lorem/index.ts b/src/locales/en/lorem/index.ts
index e1929cf1..b72a2355 100644
--- a/src/locales/en/lorem/index.ts
+++ b/src/locales/en/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/en/name/index.ts b/src/locales/en/name/index.ts
index dcc3fef1..67668f73 100644
--- a/src/locales/en/name/index.ts
+++ b/src/locales/en/name/index.ts
@@ -17,7 +17,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,
female_middle_name,
diff --git a/src/locales/en_AU/address/index.ts b/src/locales/en_AU/address/index.ts
index 0bb1576e..2c896fff 100644
--- a/src/locales/en_AU/address/index.ts
+++ b/src/locales/en_AU/address/index.ts
@@ -10,13 +10,13 @@ import state from './state';
import state_abbr from './state_abbr';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
default_country,
postcode,
state,
state_abbr,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_AU/company/index.ts b/src/locales/en_AU/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/en_AU/company/index.ts
+++ b/src/locales/en_AU/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/en_AU/internet/index.ts b/src/locales/en_AU/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_AU/internet/index.ts
+++ b/src/locales/en_AU/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_AU/name/index.ts b/src/locales/en_AU/name/index.ts
index a55032a0..baa80784 100644
--- a/src/locales/en_AU/name/index.ts
+++ b/src/locales/en_AU/name/index.ts
@@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..';
import first_name from './first_name';
import last_name from './last_name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
};
diff --git a/src/locales/en_AU_ocker/address/index.ts b/src/locales/en_AU_ocker/address/index.ts
index 83ae57b8..e1f1f576 100644
--- a/src/locales/en_AU_ocker/address/index.ts
+++ b/src/locales/en_AU_ocker/address/index.ts
@@ -15,7 +15,7 @@ import street_name from './street_name';
import street_root from './street_root';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -27,6 +27,6 @@ const address = {
street_name,
street_root,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_AU_ocker/company/index.ts b/src/locales/en_AU_ocker/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/en_AU_ocker/company/index.ts
+++ b/src/locales/en_AU_ocker/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/en_AU_ocker/internet/index.ts b/src/locales/en_AU_ocker/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_AU_ocker/internet/index.ts
+++ b/src/locales/en_AU_ocker/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_AU_ocker/name/index.ts b/src/locales/en_AU_ocker/name/index.ts
index 7b938ed2..9320c171 100644
--- a/src/locales/en_AU_ocker/name/index.ts
+++ b/src/locales/en_AU_ocker/name/index.ts
@@ -7,10 +7,10 @@ import first_name from './first_name';
import last_name from './last_name';
import ocker_first_name from './ocker_first_name';
-const name = {
+const name: NameDefinitions = {
first_name,
last_name,
ocker_first_name,
-} as Partial<NameDefinitions>;
+};
export default name;
diff --git a/src/locales/en_CA/address/index.ts b/src/locales/en_CA/address/index.ts
index 71ef1ced..7fcaaf57 100644
--- a/src/locales/en_CA/address/index.ts
+++ b/src/locales/en_CA/address/index.ts
@@ -8,11 +8,11 @@ import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
-const address = {
+const address: AddressDefinitions = {
default_country,
postcode,
state,
state_abbr,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_CA/internet/index.ts b/src/locales/en_CA/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/en_CA/internet/index.ts
+++ b/src/locales/en_CA/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/en_GB/address/index.ts b/src/locales/en_GB/address/index.ts
index f3bd982a..24517b91 100644
--- a/src/locales/en_GB/address/index.ts
+++ b/src/locales/en_GB/address/index.ts
@@ -8,11 +8,11 @@ import default_country from './default_country';
import postcode from './postcode';
import uk_country from './uk_country';
-const address = {
+const address: AddressDefinitions = {
county,
default_country,
postcode,
uk_country,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_GB/internet/index.ts b/src/locales/en_GB/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_GB/internet/index.ts
+++ b/src/locales/en_GB/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_GH/address/index.ts b/src/locales/en_GH/address/index.ts
index 24af1942..30977efc 100644
--- a/src/locales/en_GH/address/index.ts
+++ b/src/locales/en_GH/address/index.ts
@@ -14,7 +14,7 @@ import street_name from './street_name';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -25,6 +25,6 @@ const address = {
street_name,
street_prefix,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_GH/company/index.ts b/src/locales/en_GH/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/en_GH/company/index.ts
+++ b/src/locales/en_GH/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/en_GH/internet/index.ts b/src/locales/en_GH/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_GH/internet/index.ts
+++ b/src/locales/en_GH/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_GH/name/index.ts b/src/locales/en_GH/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/en_GH/name/index.ts
+++ b/src/locales/en_GH/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/en_IE/address/index.ts b/src/locales/en_IE/address/index.ts
index 365551dc..d6efb162 100644
--- a/src/locales/en_IE/address/index.ts
+++ b/src/locales/en_IE/address/index.ts
@@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..';
import county from './county';
import default_country from './default_country';
-const address = {
+const address: AddressDefinitions = {
county,
default_country,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_IE/internet/index.ts b/src/locales/en_IE/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_IE/internet/index.ts
+++ b/src/locales/en_IE/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_IND/address/index.ts b/src/locales/en_IND/address/index.ts
index 056eb39a..00199011 100644
--- a/src/locales/en_IND/address/index.ts
+++ b/src/locales/en_IND/address/index.ts
@@ -10,13 +10,13 @@ import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
-const address = {
+const address: AddressDefinitions = {
city,
city_name,
default_country,
postcode,
state,
state_abbr,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_IND/company/index.ts b/src/locales/en_IND/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/en_IND/company/index.ts
+++ b/src/locales/en_IND/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/en_IND/internet/index.ts b/src/locales/en_IND/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/en_IND/internet/index.ts
+++ b/src/locales/en_IND/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/en_IND/name/index.ts b/src/locales/en_IND/name/index.ts
index a55032a0..baa80784 100644
--- a/src/locales/en_IND/name/index.ts
+++ b/src/locales/en_IND/name/index.ts
@@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..';
import first_name from './first_name';
import last_name from './last_name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
};
diff --git a/src/locales/en_NG/address/index.ts b/src/locales/en_NG/address/index.ts
index 8f8c948f..3a51212f 100644
--- a/src/locales/en_NG/address/index.ts
+++ b/src/locales/en_NG/address/index.ts
@@ -9,12 +9,12 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
-const address = {
+const address: AddressDefinitions = {
city,
city_prefix,
default_country,
postcode,
state,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_NG/company/index.ts b/src/locales/en_NG/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/en_NG/company/index.ts
+++ b/src/locales/en_NG/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/en_NG/internet/index.ts b/src/locales/en_NG/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_NG/internet/index.ts
+++ b/src/locales/en_NG/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_NG/name/index.ts b/src/locales/en_NG/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/en_NG/name/index.ts
+++ b/src/locales/en_NG/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/en_US/address/index.ts b/src/locales/en_US/address/index.ts
index 723335b8..5b2f2765 100644
--- a/src/locales/en_US/address/index.ts
+++ b/src/locales/en_US/address/index.ts
@@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..';
import default_country from './default_country';
import postcode_by_state from './postcode_by_state';
-const address = {
+const address: AddressDefinitions = {
default_country,
postcode_by_state,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_US/internet/index.ts b/src/locales/en_US/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_US/internet/index.ts
+++ b/src/locales/en_US/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_US/phone_number/index.ts b/src/locales/en_US/phone_number/index.ts
index f2bd1a26..682879e5 100644
--- a/src/locales/en_US/phone_number/index.ts
+++ b/src/locales/en_US/phone_number/index.ts
@@ -6,9 +6,9 @@ import type { PhoneNumberDefinitions } from '../../..';
import area_code from './area_code';
import exchange_code from './exchange_code';
-const phone_number = {
+const phone_number: PhoneNumberDefinitions = {
area_code,
exchange_code,
-} as Partial<PhoneNumberDefinitions>;
+};
export default phone_number;
diff --git a/src/locales/en_ZA/address/index.ts b/src/locales/en_ZA/address/index.ts
index 8f8c948f..3a51212f 100644
--- a/src/locales/en_ZA/address/index.ts
+++ b/src/locales/en_ZA/address/index.ts
@@ -9,12 +9,12 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
-const address = {
+const address: AddressDefinitions = {
city,
city_prefix,
default_country,
postcode,
state,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/en_ZA/company/index.ts b/src/locales/en_ZA/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/en_ZA/company/index.ts
+++ b/src/locales/en_ZA/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/en_ZA/internet/index.ts b/src/locales/en_ZA/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/en_ZA/internet/index.ts
+++ b/src/locales/en_ZA/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/en_ZA/name/index.ts b/src/locales/en_ZA/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/en_ZA/name/index.ts
+++ b/src/locales/en_ZA/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/en_ZA/phone_number/index.ts b/src/locales/en_ZA/phone_number/index.ts
index d04c0c59..fee735f1 100644
--- a/src/locales/en_ZA/phone_number/index.ts
+++ b/src/locales/en_ZA/phone_number/index.ts
@@ -7,10 +7,10 @@ import area_code from './area_code';
import exchange_code from './exchange_code';
import formats from './formats';
-const phone_number = {
+const phone_number: PhoneNumberDefinitions = {
area_code,
exchange_code,
formats,
-} as PhoneNumberDefinitions;
+};
export default phone_number;
diff --git a/src/locales/es/address/index.ts b/src/locales/es/address/index.ts
index 095c28a8..da1d8077 100644
--- a/src/locales/es/address/index.ts
+++ b/src/locales/es/address/index.ts
@@ -18,7 +18,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import time_zone from './time_zone';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -33,6 +33,6 @@ const address = {
street_name,
street_suffix,
time_zone,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/es/commerce/index.ts b/src/locales/es/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/es/commerce/index.ts
+++ b/src/locales/es/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/es/company/index.ts b/src/locales/es/company/index.ts
index f848fa63..401e3548 100644
--- a/src/locales/es/company/index.ts
+++ b/src/locales/es/company/index.ts
@@ -9,12 +9,12 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
descriptor,
name: name_,
noun,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/es/internet/index.ts b/src/locales/es/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/es/internet/index.ts
+++ b/src/locales/es/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/es/name/index.ts b/src/locales/es/name/index.ts
index b8cd692a..8018f95e 100644
--- a/src/locales/es/name/index.ts
+++ b/src/locales/es/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/es_MX/address/index.ts b/src/locales/es_MX/address/index.ts
index 34d93b3d..a23b1609 100644
--- a/src/locales/es_MX/address/index.ts
+++ b/src/locales/es_MX/address/index.ts
@@ -19,7 +19,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import time_zone from './time_zone';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -35,6 +35,6 @@ const address = {
street_name,
street_suffix,
time_zone,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/es_MX/commerce/index.ts b/src/locales/es_MX/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/es_MX/commerce/index.ts
+++ b/src/locales/es_MX/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/es_MX/company/index.ts b/src/locales/es_MX/company/index.ts
index a3e1cf1a..abdbc9f5 100644
--- a/src/locales/es_MX/company/index.ts
+++ b/src/locales/es_MX/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/es_MX/internet/index.ts b/src/locales/es_MX/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/es_MX/internet/index.ts
+++ b/src/locales/es_MX/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/es_MX/name/index.ts b/src/locales/es_MX/name/index.ts
index d6f8fce5..8799810e 100644
--- a/src/locales/es_MX/name/index.ts
+++ b/src/locales/es_MX/name/index.ts
@@ -10,7 +10,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/fa/address/index.ts b/src/locales/fa/address/index.ts
index 64b49f98..77d9222a 100644
--- a/src/locales/fa/address/index.ts
+++ b/src/locales/fa/address/index.ts
@@ -19,7 +19,7 @@ import street_name from './street_name';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -35,6 +35,6 @@ const address = {
street_name,
street_prefix,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/fa/commerce/index.ts b/src/locales/fa/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/fa/commerce/index.ts
+++ b/src/locales/fa/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/fa/company/index.ts b/src/locales/fa/company/index.ts
index a3e1cf1a..abdbc9f5 100644
--- a/src/locales/fa/company/index.ts
+++ b/src/locales/fa/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/fa/internet/index.ts b/src/locales/fa/internet/index.ts
index 161d247d..b67a2fe7 100644
--- a/src/locales/fa/internet/index.ts
+++ b/src/locales/fa/internet/index.ts
@@ -7,7 +7,7 @@ import domain_suffix from './domain_suffix';
import example_email from './example_email';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
example_email,
free_email,
diff --git a/src/locales/fa/name/index.ts b/src/locales/fa/name/index.ts
index ffd544db..4d532475 100644
--- a/src/locales/fa/name/index.ts
+++ b/src/locales/fa/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/fa/vehicle/index.ts b/src/locales/fa/vehicle/index.ts
index 6735cd53..826d25a0 100644
--- a/src/locales/fa/vehicle/index.ts
+++ b/src/locales/fa/vehicle/index.ts
@@ -8,7 +8,7 @@ import manufacturer from './manufacturer';
import model from './model';
import type_ from './type';
-const vehicle: Partial<VehicleDefinitions> = {
+const vehicle: VehicleDefinitions = {
fuel,
manufacturer,
model,
diff --git a/src/locales/fi/name/index.ts b/src/locales/fi/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/fi/name/index.ts
+++ b/src/locales/fi/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/fr/address/index.ts b/src/locales/fr/address/index.ts
index 9df13565..4ad1b8c7 100644
--- a/src/locales/fr/address/index.ts
+++ b/src/locales/fr/address/index.ts
@@ -16,7 +16,7 @@ import street_name from './street_name';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_name,
street_prefix,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/fr/company/index.ts b/src/locales/fr/company/index.ts
index a3e1cf1a..abdbc9f5 100644
--- a/src/locales/fr/company/index.ts
+++ b/src/locales/fr/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/fr/internet/index.ts b/src/locales/fr/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/fr/internet/index.ts
+++ b/src/locales/fr/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/fr/name/index.ts b/src/locales/fr/name/index.ts
index ffd544db..4d532475 100644
--- a/src/locales/fr/name/index.ts
+++ b/src/locales/fr/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/fr_BE/address/index.ts b/src/locales/fr_BE/address/index.ts
index f1d0952b..f1b85954 100644
--- a/src/locales/fr_BE/address/index.ts
+++ b/src/locales/fr_BE/address/index.ts
@@ -16,7 +16,7 @@ import street_name from './street_name';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -29,6 +29,6 @@ const address = {
street_name,
street_prefix,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/fr_BE/internet/index.ts b/src/locales/fr_BE/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/fr_BE/internet/index.ts
+++ b/src/locales/fr_BE/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/fr_BE/name/index.ts b/src/locales/fr_BE/name/index.ts
index 806e2fde..c2a67693 100644
--- a/src/locales/fr_BE/name/index.ts
+++ b/src/locales/fr_BE/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 = {
female_first_name,
first_name,
gender,
diff --git a/src/locales/fr_CA/address/index.ts b/src/locales/fr_CA/address/index.ts
index 71ef1ced..7fcaaf57 100644
--- a/src/locales/fr_CA/address/index.ts
+++ b/src/locales/fr_CA/address/index.ts
@@ -8,11 +8,11 @@ import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
-const address = {
+const address: AddressDefinitions = {
default_country,
postcode,
state,
state_abbr,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/fr_CA/internet/index.ts b/src/locales/fr_CA/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/fr_CA/internet/index.ts
+++ b/src/locales/fr_CA/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/fr_CH/address/index.ts b/src/locales/fr_CH/address/index.ts
index 1ea3c8e7..ec4e22b9 100644
--- a/src/locales/fr_CH/address/index.ts
+++ b/src/locales/fr_CH/address/index.ts
@@ -10,13 +10,13 @@ import default_country from './default_country';
import postcode from './postcode';
import state from './state';
-const address = {
+const address: AddressDefinitions = {
city,
city_name,
country_code,
default_country,
postcode,
state,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/fr_CH/internet/index.ts b/src/locales/fr_CH/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/fr_CH/internet/index.ts
+++ b/src/locales/fr_CH/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/ge/address/index.ts b/src/locales/ge/address/index.ts
index e2f034ad..f47674c7 100644
--- a/src/locales/ge/address/index.ts
+++ b/src/locales/ge/address/index.ts
@@ -17,7 +17,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import street_title from './street_title';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -31,6 +31,6 @@ const address = {
street_name,
street_suffix,
street_title,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ge/company/index.ts b/src/locales/ge/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/ge/company/index.ts
+++ b/src/locales/ge/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/ge/internet/index.ts b/src/locales/ge/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/ge/internet/index.ts
+++ b/src/locales/ge/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/ge/name/index.ts b/src/locales/ge/name/index.ts
index 77b4c2eb..e0c74acd 100644
--- a/src/locales/ge/name/index.ts
+++ b/src/locales/ge/name/index.ts
@@ -9,7 +9,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/he/address/index.ts b/src/locales/he/address/index.ts
index bcf2af27..710a0b9c 100644
--- a/src/locales/he/address/index.ts
+++ b/src/locales/he/address/index.ts
@@ -21,7 +21,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import time_zone from './time_zone';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -39,6 +39,6 @@ const address = {
street_name,
street_suffix,
time_zone,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/he/lorem/index.ts b/src/locales/he/lorem/index.ts
index e1929cf1..b72a2355 100644
--- a/src/locales/he/lorem/index.ts
+++ b/src/locales/he/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/he/name/index.ts b/src/locales/he/name/index.ts
index 806e2fde..c2a67693 100644
--- a/src/locales/he/name/index.ts
+++ b/src/locales/he/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 = {
female_first_name,
first_name,
gender,
diff --git a/src/locales/hr/address/index.ts b/src/locales/hr/address/index.ts
index cc35ff34..895b8d98 100644
--- a/src/locales/hr/address/index.ts
+++ b/src/locales/hr/address/index.ts
@@ -15,7 +15,7 @@ import street_address from './street_address';
import street_name from './street_name';
import time_zone from './time_zone';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -27,6 +27,6 @@ const address = {
street_address,
street_name,
time_zone,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/hr/internet/index.ts b/src/locales/hr/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/hr/internet/index.ts
+++ b/src/locales/hr/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/hr/name/index.ts b/src/locales/hr/name/index.ts
index b8cd692a..8018f95e 100644
--- a/src/locales/hr/name/index.ts
+++ b/src/locales/hr/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/hu/animal/index.ts b/src/locales/hu/animal/index.ts
index 70698365..37957dfe 100644
--- a/src/locales/hu/animal/index.ts
+++ b/src/locales/hu/animal/index.ts
@@ -7,7 +7,7 @@ import cat from './cat';
import dog from './dog';
import horse from './horse';
-const animal: Partial<AnimalDefinitions> = {
+const animal: AnimalDefinitions = {
cat,
dog,
horse,
diff --git a/src/locales/hu/finance/index.ts b/src/locales/hu/finance/index.ts
index d1e16a99..c58e73a4 100644
--- a/src/locales/hu/finance/index.ts
+++ b/src/locales/hu/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/hu/internet/index.ts b/src/locales/hu/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/hu/internet/index.ts
+++ b/src/locales/hu/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/hu/name/index.ts b/src/locales/hu/name/index.ts
index 54b02001..fbc16c3d 100644
--- a/src/locales/hu/name/index.ts
+++ b/src/locales/hu/name/index.ts
@@ -10,7 +10,7 @@ import male_first_name from './male_first_name';
import name_ from './name';
import prefix from './prefix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/hu/word/index.ts b/src/locales/hu/word/index.ts
index 7cc6fb21..978ecd19 100644
--- a/src/locales/hu/word/index.ts
+++ b/src/locales/hu/word/index.ts
@@ -10,7 +10,7 @@ import interjection from './interjection';
import noun from './noun';
import verb from './verb';
-const word: Partial<WordDefinitions> = {
+const word: WordDefinitions = {
adjective,
adverb,
conjunction,
diff --git a/src/locales/hy/address/index.ts b/src/locales/hy/address/index.ts
index 9ae58258..57b0a1e8 100644
--- a/src/locales/hy/address/index.ts
+++ b/src/locales/hy/address/index.ts
@@ -16,7 +16,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_prefix,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/hy/commerce/index.ts b/src/locales/hy/commerce/index.ts
index 8ad08ef7..26b2864f 100644
--- a/src/locales/hy/commerce/index.ts
+++ b/src/locales/hy/commerce/index.ts
@@ -5,7 +5,7 @@
import type { CommerceDefinitions } from '../../..';
import color from './color';
-const commerce: Partial<CommerceDefinitions> = {
+const commerce: CommerceDefinitions = {
color,
};
diff --git a/src/locales/hy/internet/index.ts b/src/locales/hy/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/hy/internet/index.ts
+++ b/src/locales/hy/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/hy/name/index.ts b/src/locales/hy/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/hy/name/index.ts
+++ b/src/locales/hy/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/id_ID/address/index.ts b/src/locales/id_ID/address/index.ts
index be871ff7..c94d5ee1 100644
--- a/src/locales/id_ID/address/index.ts
+++ b/src/locales/id_ID/address/index.ts
@@ -13,7 +13,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_prefix from './street_prefix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -23,6 +23,6 @@ const address = {
street_address,
street_name,
street_prefix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/id_ID/company/index.ts b/src/locales/id_ID/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/id_ID/company/index.ts
+++ b/src/locales/id_ID/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/id_ID/internet/index.ts b/src/locales/id_ID/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/id_ID/internet/index.ts
+++ b/src/locales/id_ID/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/id_ID/name/index.ts b/src/locales/id_ID/name/index.ts
index 57f814dc..9fd0141a 100644
--- a/src/locales/id_ID/name/index.ts
+++ b/src/locales/id_ID/name/index.ts
@@ -13,7 +13,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
female_title,
@@ -23,6 +23,6 @@ const name = {
name: name_,
prefix,
suffix,
-} as Partial<NameDefinitions>;
+};
export default name;
diff --git a/src/locales/it/address/index.ts b/src/locales/it/address/index.ts
index ce53ed7a..8342cd85 100644
--- a/src/locales/it/address/index.ts
+++ b/src/locales/it/address/index.ts
@@ -18,7 +18,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,
@@ -33,6 +33,6 @@ const address = {
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 a3e1cf1a..abdbc9f5 100644
--- a/src/locales/it/company/index.ts
+++ b/src/locales/it/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as CompanyDefinitions;
+};
export default company;
diff --git a/src/locales/it/internet/index.ts b/src/locales/it/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/it/internet/index.ts
+++ b/src/locales/it/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/it/name/index.ts b/src/locales/it/name/index.ts
index c674f1a4..4393e0e7 100644
--- a/src/locales/it/name/index.ts
+++ b/src/locales/it/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/ja/address/index.ts b/src/locales/ja/address/index.ts
index 3d45d62f..02681742 100644
--- a/src/locales/ja/address/index.ts
+++ b/src/locales/ja/address/index.ts
@@ -12,7 +12,7 @@ import state from './state';
import state_abbr from './state_abbr';
import street_name from './street_name';
-const address = {
+const address: AddressDefinitions = {
city,
city_prefix,
city_suffix,
@@ -21,6 +21,6 @@ const address = {
state,
state_abbr,
street_name,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ja/lorem/index.ts b/src/locales/ja/lorem/index.ts
index e1929cf1..b72a2355 100644
--- a/src/locales/ja/lorem/index.ts
+++ b/src/locales/ja/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/ja/name/index.ts b/src/locales/ja/name/index.ts
index ad3a9da3..e5ceaf3c 100644
--- a/src/locales/ja/name/index.ts
+++ b/src/locales/ja/name/index.ts
@@ -7,7 +7,7 @@ import first_name from './first_name';
import last_name from './last_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/ko/address/index.ts b/src/locales/ko/address/index.ts
index aab6f51b..895d0f10 100644
--- a/src/locales/ko/address/index.ts
+++ b/src/locales/ko/address/index.ts
@@ -13,7 +13,7 @@ import street_name from './street_name';
import street_root from './street_root';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
city,
city_name,
city_suffix,
@@ -23,6 +23,6 @@ const address = {
street_name,
street_root,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ko/company/index.ts b/src/locales/ko/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/ko/company/index.ts
+++ b/src/locales/ko/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/ko/internet/index.ts b/src/locales/ko/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/ko/internet/index.ts
+++ b/src/locales/ko/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/ko/name/index.ts b/src/locales/ko/name/index.ts
index ad3a9da3..e5ceaf3c 100644
--- a/src/locales/ko/name/index.ts
+++ b/src/locales/ko/name/index.ts
@@ -7,7 +7,7 @@ import first_name from './first_name';
import last_name from './last_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/lv/address/index.ts b/src/locales/lv/address/index.ts
index 22f6789f..c4e5091a 100644
--- a/src/locales/lv/address/index.ts
+++ b/src/locales/lv/address/index.ts
@@ -16,7 +16,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import street_title from './street_title';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_name,
street_suffix,
street_title,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/lv/commerce/index.ts b/src/locales/lv/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/lv/commerce/index.ts
+++ b/src/locales/lv/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/lv/company/index.ts b/src/locales/lv/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/lv/company/index.ts
+++ b/src/locales/lv/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/lv/internet/index.ts b/src/locales/lv/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/lv/internet/index.ts
+++ b/src/locales/lv/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/lv/lorem/index.ts b/src/locales/lv/lorem/index.ts
index e1929cf1..b72a2355 100644
--- a/src/locales/lv/lorem/index.ts
+++ b/src/locales/lv/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/lv/name/index.ts b/src/locales/lv/name/index.ts
index 4a67aef6..3f757e95 100644
--- a/src/locales/lv/name/index.ts
+++ b/src/locales/lv/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
male_first_name,
diff --git a/src/locales/mk/address/index.ts b/src/locales/mk/address/index.ts
index 52320c09..d15f9ae6 100644
--- a/src/locales/mk/address/index.ts
+++ b/src/locales/mk/address/index.ts
@@ -14,7 +14,7 @@ import street from './street';
import street_address from './street_address';
import street_name from './street_name';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -25,6 +25,6 @@ const address = {
street,
street_address,
street_name,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/mk/company/index.ts b/src/locales/mk/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/mk/company/index.ts
+++ b/src/locales/mk/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/mk/internet/index.ts b/src/locales/mk/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/mk/internet/index.ts
+++ b/src/locales/mk/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/mk/name/index.ts b/src/locales/mk/name/index.ts
index db8c210f..8c6e627e 100644
--- a/src/locales/mk/name/index.ts
+++ b/src/locales/mk/name/index.ts
@@ -16,7 +16,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
female_prefix,
diff --git a/src/locales/nb_NO/address/index.ts b/src/locales/nb_NO/address/index.ts
index 055bcc64..eb2468ab 100644
--- a/src/locales/nb_NO/address/index.ts
+++ b/src/locales/nb_NO/address/index.ts
@@ -18,7 +18,7 @@ import street_prefix from './street_prefix';
import street_root from './street_root';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_root,
@@ -33,6 +33,6 @@ const address = {
street_prefix,
street_root,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/nb_NO/company/index.ts b/src/locales/nb_NO/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/nb_NO/company/index.ts
+++ b/src/locales/nb_NO/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/nb_NO/internet/index.ts b/src/locales/nb_NO/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/nb_NO/internet/index.ts
+++ b/src/locales/nb_NO/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/nb_NO/name/index.ts b/src/locales/nb_NO/name/index.ts
index c674f1a4..4393e0e7 100644
--- a/src/locales/nb_NO/name/index.ts
+++ b/src/locales/nb_NO/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/ne/address/index.ts b/src/locales/ne/address/index.ts
index 337bd626..ec4a46a8 100644
--- a/src/locales/ne/address/index.ts
+++ b/src/locales/ne/address/index.ts
@@ -7,10 +7,10 @@ import city from './city';
import default_country from './default_country';
import state from './state';
-const address = {
+const address: AddressDefinitions = {
city,
default_country,
state,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ne/company/index.ts b/src/locales/ne/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/ne/company/index.ts
+++ b/src/locales/ne/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/ne/internet/index.ts b/src/locales/ne/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/ne/internet/index.ts
+++ b/src/locales/ne/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/ne/name/index.ts b/src/locales/ne/name/index.ts
index a55032a0..baa80784 100644
--- a/src/locales/ne/name/index.ts
+++ b/src/locales/ne/name/index.ts
@@ -6,7 +6,7 @@ import type { NameDefinitions } from '../../..';
import first_name from './first_name';
import last_name from './last_name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
};
diff --git a/src/locales/nl/address/index.ts b/src/locales/nl/address/index.ts
index 1c98e9fc..db1f0cbf 100644
--- a/src/locales/nl/address/index.ts
+++ b/src/locales/nl/address/index.ts
@@ -16,7 +16,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_prefix,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/nl/commerce/index.ts b/src/locales/nl/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/nl/commerce/index.ts
+++ b/src/locales/nl/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/nl/company/index.ts b/src/locales/nl/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/nl/company/index.ts
+++ b/src/locales/nl/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/nl/hacker/index.ts b/src/locales/nl/hacker/index.ts
index 8c41988f..daf8d3c2 100644
--- a/src/locales/nl/hacker/index.ts
+++ b/src/locales/nl/hacker/index.ts
@@ -8,7 +8,7 @@ import noun from './noun';
import phrase from './phrase';
import verb from './verb';
-const hacker: Partial<HackerDefinitions> = {
+const hacker: HackerDefinitions = {
adjective,
noun,
phrase,
diff --git a/src/locales/nl/internet/index.ts b/src/locales/nl/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/nl/internet/index.ts
+++ b/src/locales/nl/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/nl/name/index.ts b/src/locales/nl/name/index.ts
index 12b174cf..6df85f13 100644
--- a/src/locales/nl/name/index.ts
+++ b/src/locales/nl/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import tussenvoegsel from './tussenvoegsel';
-const name = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
@@ -21,6 +21,6 @@ const name = {
prefix,
suffix,
tussenvoegsel,
-} as Partial<NameDefinitions>;
+};
export default name;
diff --git a/src/locales/nl_BE/address/index.ts b/src/locales/nl_BE/address/index.ts
index 9aea3c01..c21cb8b1 100644
--- a/src/locales/nl_BE/address/index.ts
+++ b/src/locales/nl_BE/address/index.ts
@@ -16,7 +16,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_prefix,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/nl_BE/company/index.ts b/src/locales/nl_BE/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/nl_BE/company/index.ts
+++ b/src/locales/nl_BE/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/nl_BE/internet/index.ts b/src/locales/nl_BE/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/nl_BE/internet/index.ts
+++ b/src/locales/nl_BE/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/nl_BE/name/index.ts b/src/locales/nl_BE/name/index.ts
index 4023f7d7..9c4bab79 100644
--- a/src/locales/nl_BE/name/index.ts
+++ b/src/locales/nl_BE/name/index.ts
@@ -9,7 +9,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/pl/address/index.ts b/src/locales/pl/address/index.ts
index 9aba4efb..9a7acbb8 100644
--- a/src/locales/pl/address/index.ts
+++ b/src/locales/pl/address/index.ts
@@ -16,7 +16,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_prefix from './street_prefix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_prefix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/pl/company/index.ts b/src/locales/pl/company/index.ts
index 0ab3ff59..777ef05c 100644
--- a/src/locales/pl/company/index.ts
+++ b/src/locales/pl/company/index.ts
@@ -12,7 +12,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjetive,
bs_adjective,
bs_noun,
@@ -21,6 +21,6 @@ const company = {
name: name_,
noun,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/pl/internet/index.ts b/src/locales/pl/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/pl/internet/index.ts
+++ b/src/locales/pl/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/pl/name/index.ts b/src/locales/pl/name/index.ts
index ffd544db..4d532475 100644
--- a/src/locales/pl/name/index.ts
+++ b/src/locales/pl/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/pt_BR/address/index.ts b/src/locales/pt_BR/address/index.ts
index 27ad3901..10be9fe3 100644
--- a/src/locales/pt_BR/address/index.ts
+++ b/src/locales/pt_BR/address/index.ts
@@ -14,7 +14,7 @@ import state from './state';
import state_abbr from './state_abbr';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city_prefix,
city_suffix,
@@ -25,6 +25,6 @@ const address = {
state,
state_abbr,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/pt_BR/commerce/index.ts b/src/locales/pt_BR/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/pt_BR/commerce/index.ts
+++ b/src/locales/pt_BR/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/pt_BR/company/index.ts b/src/locales/pt_BR/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/pt_BR/company/index.ts
+++ b/src/locales/pt_BR/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/pt_BR/internet/index.ts b/src/locales/pt_BR/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/pt_BR/internet/index.ts
+++ b/src/locales/pt_BR/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/pt_BR/name/index.ts b/src/locales/pt_BR/name/index.ts
index 335315b9..d4c0e73a 100644
--- a/src/locales/pt_BR/name/index.ts
+++ b/src/locales/pt_BR/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,
diff --git a/src/locales/pt_PT/address/index.ts b/src/locales/pt_PT/address/index.ts
index d0a5e212..3bd6ac41 100644
--- a/src/locales/pt_PT/address/index.ts
+++ b/src/locales/pt_PT/address/index.ts
@@ -16,7 +16,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_prefix from './street_prefix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_prefix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/pt_PT/commerce/index.ts b/src/locales/pt_PT/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/pt_PT/commerce/index.ts
+++ b/src/locales/pt_PT/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/pt_PT/internet/index.ts b/src/locales/pt_PT/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/pt_PT/internet/index.ts
+++ b/src/locales/pt_PT/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/pt_PT/name/index.ts b/src/locales/pt_PT/name/index.ts
index 8c4f0394..6fbdcb53 100644
--- a/src/locales/pt_PT/name/index.ts
+++ b/src/locales/pt_PT/name/index.ts
@@ -13,7 +13,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_prefix,
first_name,
diff --git a/src/locales/ro/address/index.ts b/src/locales/ro/address/index.ts
index 9b4199f6..5698ded1 100644
--- a/src/locales/ro/address/index.ts
+++ b/src/locales/ro/address/index.ts
@@ -16,7 +16,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,
county,
@@ -29,6 +29,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ro/internet/index.ts b/src/locales/ro/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/ro/internet/index.ts
+++ b/src/locales/ro/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/ro/name/index.ts b/src/locales/ro/name/index.ts
index 9405aa80..b142fe88 100644
--- a/src/locales/ro/name/index.ts
+++ b/src/locales/ro/name/index.ts
@@ -10,7 +10,7 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
last_name,
male_first_name,
diff --git a/src/locales/ru/address/index.ts b/src/locales/ru/address/index.ts
index 22f6789f..c4e5091a 100644
--- a/src/locales/ru/address/index.ts
+++ b/src/locales/ru/address/index.ts
@@ -16,7 +16,7 @@ import street_name from './street_name';
import street_suffix from './street_suffix';
import street_title from './street_title';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -29,6 +29,6 @@ const address = {
street_name,
street_suffix,
street_title,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/ru/commerce/index.ts b/src/locales/ru/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/ru/commerce/index.ts
+++ b/src/locales/ru/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/ru/company/index.ts b/src/locales/ru/company/index.ts
index 37db74f5..6e91a4e2 100644
--- a/src/locales/ru/company/index.ts
+++ b/src/locales/ru/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/ru/internet/index.ts b/src/locales/ru/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/ru/internet/index.ts
+++ b/src/locales/ru/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/ru/name/index.ts b/src/locales/ru/name/index.ts
index b9493154..6a0b4f3f 100644
--- a/src/locales/ru/name/index.ts
+++ b/src/locales/ru/name/index.ts
@@ -14,7 +14,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
female_middle_name,
diff --git a/src/locales/sk/address/index.ts b/src/locales/sk/address/index.ts
index 009d9ad9..2551894c 100644
--- a/src/locales/sk/address/index.ts
+++ b/src/locales/sk/address/index.ts
@@ -18,7 +18,7 @@ import street from './street';
import street_address from './street_address';
import street_name from './street_name';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -33,6 +33,6 @@ const address = {
street,
street_address,
street_name,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/sk/company/index.ts b/src/locales/sk/company/index.ts
index c4694c68..1b69a9d1 100644
--- a/src/locales/sk/company/index.ts
+++ b/src/locales/sk/company/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import noun from './noun';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
adjective,
bs_noun,
bs_verb,
@@ -19,6 +19,6 @@ const company = {
name: name_,
noun,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/sk/internet/index.ts b/src/locales/sk/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/sk/internet/index.ts
+++ b/src/locales/sk/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/sk/name/index.ts b/src/locales/sk/name/index.ts
index 4a67aef6..3f757e95 100644
--- a/src/locales/sk/name/index.ts
+++ b/src/locales/sk/name/index.ts
@@ -12,7 +12,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
male_first_name,
diff --git a/src/locales/sv/address/index.ts b/src/locales/sv/address/index.ts
index addb740d..1c99319a 100644
--- a/src/locales/sv/address/index.ts
+++ b/src/locales/sv/address/index.ts
@@ -19,7 +19,7 @@ import street_prefix from './street_prefix';
import street_root from './street_root';
import street_suffix from './street_suffix';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_prefix,
@@ -35,6 +35,6 @@ const address = {
street_prefix,
street_root,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/sv/commerce/index.ts b/src/locales/sv/commerce/index.ts
index 621c6057..823fcbd2 100644
--- a/src/locales/sv/commerce/index.ts
+++ b/src/locales/sv/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/sv/company/index.ts b/src/locales/sv/company/index.ts
index d6c3f798..f3027330 100644
--- a/src/locales/sv/company/index.ts
+++ b/src/locales/sv/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/sv/internet/index.ts b/src/locales/sv/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/sv/internet/index.ts
+++ b/src/locales/sv/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/sv/name/index.ts b/src/locales/sv/name/index.ts
index ffd544db..4d532475 100644
--- a/src/locales/sv/name/index.ts
+++ b/src/locales/sv/name/index.ts
@@ -11,7 +11,7 @@ import name_ from './name';
import prefix from './prefix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/tr/address/index.ts b/src/locales/tr/address/index.ts
index 62a2b1b2..8c8323e0 100644
--- a/src/locales/tr/address/index.ts
+++ b/src/locales/tr/address/index.ts
@@ -12,7 +12,7 @@ import street_address from './street_address';
import street_name from './street_name';
import street_root from './street_root';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
country,
@@ -21,6 +21,6 @@ const address = {
street_address,
street_name,
street_root,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/tr/internet/index.ts b/src/locales/tr/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/tr/internet/index.ts
+++ b/src/locales/tr/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/tr/name/index.ts b/src/locales/tr/name/index.ts
index 54b02001..fbc16c3d 100644
--- a/src/locales/tr/name/index.ts
+++ b/src/locales/tr/name/index.ts
@@ -10,7 +10,7 @@ import male_first_name from './male_first_name';
import name_ from './name';
import prefix from './prefix';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/tr/phone_number/index.ts b/src/locales/tr/phone_number/index.ts
index aaad7ae5..3c11a3eb 100644
--- a/src/locales/tr/phone_number/index.ts
+++ b/src/locales/tr/phone_number/index.ts
@@ -6,9 +6,9 @@ import type { PhoneNumberDefinitions } from '../../..';
import area_code from './area_code';
import formats from './formats';
-const phone_number = {
+const phone_number: PhoneNumberDefinitions = {
area_code,
formats,
-} as PhoneNumberDefinitions;
+};
export default phone_number;
diff --git a/src/locales/uk/address/index.ts b/src/locales/uk/address/index.ts
index 7eb3421c..328e9c2c 100644
--- a/src/locales/uk/address/index.ts
+++ b/src/locales/uk/address/index.ts
@@ -19,7 +19,7 @@ import street_prefix from './street_prefix';
import street_suffix from './street_suffix';
import street_title from './street_title';
-const address = {
+const address: AddressDefinitions = {
building_number,
city,
city_name,
@@ -35,6 +35,6 @@ const address = {
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 37db74f5..6e91a4e2 100644
--- a/src/locales/uk/company/index.ts
+++ b/src/locales/uk/company/index.ts
@@ -7,10 +7,10 @@ import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
suffix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/uk/internet/index.ts b/src/locales/uk/internet/index.ts
index c73e7beb..8b0ef73e 100644
--- a/src/locales/uk/internet/index.ts
+++ b/src/locales/uk/internet/index.ts
@@ -6,7 +6,7 @@ import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
free_email,
};
diff --git a/src/locales/uk/name/index.ts b/src/locales/uk/name/index.ts
index b9493154..6a0b4f3f 100644
--- a/src/locales/uk/name/index.ts
+++ b/src/locales/uk/name/index.ts
@@ -14,7 +14,7 @@ import prefix from './prefix';
import suffix from './suffix';
import title from './title';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
female_last_name,
female_middle_name,
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,
diff --git a/src/locales/vi/address/index.ts b/src/locales/vi/address/index.ts
index 95ae439c..dc1ca309 100644
--- a/src/locales/vi/address/index.ts
+++ b/src/locales/vi/address/index.ts
@@ -9,12 +9,12 @@ import country from './country';
import default_country from './default_country';
import postcode from './postcode';
-const address = {
+const address: AddressDefinitions = {
city,
city_root,
country,
default_country,
postcode,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/vi/company/index.ts b/src/locales/vi/company/index.ts
index 204b0628..eeb77160 100644
--- a/src/locales/vi/company/index.ts
+++ b/src/locales/vi/company/index.ts
@@ -6,9 +6,9 @@ import type { CompanyDefinitions } from '../../..';
import name_ from './name';
import prefix from './prefix';
-const company = {
+const company: CompanyDefinitions = {
name: name_,
prefix,
-} as Partial<CompanyDefinitions>;
+};
export default company;
diff --git a/src/locales/vi/internet/index.ts b/src/locales/vi/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/vi/internet/index.ts
+++ b/src/locales/vi/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/vi/name/index.ts b/src/locales/vi/name/index.ts
index 513b2c73..80631e1c 100644
--- a/src/locales/vi/name/index.ts
+++ b/src/locales/vi/name/index.ts
@@ -9,7 +9,7 @@ import last_name from './last_name';
import male_first_name from './male_first_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,
diff --git a/src/locales/zh_CN/address/index.ts b/src/locales/zh_CN/address/index.ts
index d4ea9a13..1a01c95d 100644
--- a/src/locales/zh_CN/address/index.ts
+++ b/src/locales/zh_CN/address/index.ts
@@ -15,7 +15,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_prefix,
@@ -27,6 +27,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/zh_CN/name/index.ts b/src/locales/zh_CN/name/index.ts
index ad3a9da3..e5ceaf3c 100644
--- a/src/locales/zh_CN/name/index.ts
+++ b/src/locales/zh_CN/name/index.ts
@@ -7,7 +7,7 @@ import first_name from './first_name';
import last_name from './last_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/zh_TW/address/index.ts b/src/locales/zh_TW/address/index.ts
index d4ea9a13..1a01c95d 100644
--- a/src/locales/zh_TW/address/index.ts
+++ b/src/locales/zh_TW/address/index.ts
@@ -15,7 +15,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_prefix,
@@ -27,6 +27,6 @@ const address = {
street_address,
street_name,
street_suffix,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/zh_TW/name/index.ts b/src/locales/zh_TW/name/index.ts
index ad3a9da3..e5ceaf3c 100644
--- a/src/locales/zh_TW/name/index.ts
+++ b/src/locales/zh_TW/name/index.ts
@@ -7,7 +7,7 @@ import first_name from './first_name';
import last_name from './last_name';
import name_ from './name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
first_name,
last_name,
name: name_,
diff --git a/src/locales/zu_ZA/address/index.ts b/src/locales/zu_ZA/address/index.ts
index 0e939ead..0d9219e7 100644
--- a/src/locales/zu_ZA/address/index.ts
+++ b/src/locales/zu_ZA/address/index.ts
@@ -6,9 +6,9 @@ import type { AddressDefinitions } from '../../..';
import default_country from './default_country';
import postcode from './postcode';
-const address = {
+const address: AddressDefinitions = {
default_country,
postcode,
-} as Partial<AddressDefinitions>;
+};
export default address;
diff --git a/src/locales/zu_ZA/company/index.ts b/src/locales/zu_ZA/company/index.ts
index 4431aca2..a7c20c6c 100644
--- a/src/locales/zu_ZA/company/index.ts
+++ b/src/locales/zu_ZA/company/index.ts
@@ -5,7 +5,7 @@
import type { CompanyDefinitions } from '../../..';
import suffix from './suffix';
-const company: Partial<CompanyDefinitions> = {
+const company: CompanyDefinitions = {
suffix,
};
diff --git a/src/locales/zu_ZA/internet/index.ts b/src/locales/zu_ZA/internet/index.ts
index 5d0ba7d6..5726872b 100644
--- a/src/locales/zu_ZA/internet/index.ts
+++ b/src/locales/zu_ZA/internet/index.ts
@@ -5,7 +5,7 @@
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
-const internet: Partial<InternetDefinitions> = {
+const internet: InternetDefinitions = {
domain_suffix,
};
diff --git a/src/locales/zu_ZA/name/index.ts b/src/locales/zu_ZA/name/index.ts
index c90a45ef..ea2e9181 100644
--- a/src/locales/zu_ZA/name/index.ts
+++ b/src/locales/zu_ZA/name/index.ts
@@ -8,7 +8,7 @@ import first_name from './first_name';
import last_name from './last_name';
import male_first_name from './male_first_name';
-const name: Partial<NameDefinitions> = {
+const name: NameDefinitions = {
female_first_name,
first_name,
last_name,