diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index fc2c7ebcb4a..7e2ca8378c8 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 +type PascalCase = S extends `${infer P1}_${infer P2}` + ? `${Capitalize}${PascalCase}` + : Capitalize; + +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///index.ts for known DEFINITIONS + // Overwrite types of src/locales///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 6552f39a7c4..a7300e5fdb4 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 d056e4021f0..58e493e5f0b 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 eb1064638a7..65aef4ba445 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 89999ced4ca..5b98bcc59da 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 47ab603d52c..776f5361e88 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 a6d74722e8a..2f014f5553d 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 a338cc836f6..fae443bacaf 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 = Partial & + // Unsupported & custom modules + // eslint-disable-next-line @typescript-eslint/no-explicit-any + Record; + /** * 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; -} & { - // Unsupported & custom modules - // eslint-disable-next-line @typescript-eslint/no-explicit-any - [group: string]: any; -}; +} & LocaleEntry; diff --git a/src/definitions/finance.ts b/src/definitions/finance.ts index e5f4553bbfe..d2c26283d4d 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 8a23c88a744..e6790839d95 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 70555b0e202..bcfcab0fc3a 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 e81871f6471..96a79a76ac1 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; -} +}>; diff --git a/src/definitions/lorem.ts b/src/definitions/lorem.ts index 202a527f067..4d851b30b64 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 eaa340aed8a..3e2842d5a1f 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 a5156410cc5..9098a66a1f7 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 1fb69ad2146..3f805ea72a1 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 c3e252329bd..c6aa16c7cb4 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 71c35851516..8904a9ebafe 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 3e502215037..c705de823c7 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 0e939eaddf4..0d9219e7b1f 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; +}; export default address; diff --git a/src/locales/af_ZA/company/index.ts b/src/locales/af_ZA/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/af_ZA/internet/index.ts b/src/locales/af_ZA/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/af_ZA/name/index.ts b/src/locales/af_ZA/name/index.ts index c90a45ef586..ea2e91811d4 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 = { +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 7789c0e5f5b..17f2bed93ea 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; +}; export default address; diff --git a/src/locales/ar/commerce/index.ts b/src/locales/ar/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ar/name/index.ts b/src/locales/ar/name/index.ts index b8cd692accc..8018f95efff 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 = { +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 6735cd533f4..826d25a0aaf 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 = { +const vehicle: VehicleDefinitions = { fuel, manufacturer, model, diff --git a/src/locales/az/address/index.ts b/src/locales/az/address/index.ts index 22f6789f781..c4e5091ad0f 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; +}; export default address; diff --git a/src/locales/az/commerce/index.ts b/src/locales/az/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/az/company/index.ts b/src/locales/az/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/az/internet/index.ts b/src/locales/az/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/az/name/index.ts b/src/locales/az/name/index.ts index 8cf3afff6fc..740c83d0c33 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 = { +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 7a0acff70b6..8222f8097a8 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; +}; export default address; diff --git a/src/locales/cz/company/index.ts b/src/locales/cz/company/index.ts index c4694c68bce..1b69a9d158d 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; +}; export default company; diff --git a/src/locales/cz/internet/index.ts b/src/locales/cz/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/cz/name/index.ts b/src/locales/cz/name/index.ts index 3c856e22f3d..7c9ae18314f 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 = { +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 0da916021db..77edabd8db6 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; +}; export default address; diff --git a/src/locales/de/company/index.ts b/src/locales/de/company/index.ts index d43fc701572..312df0c6384 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; +}; export default company; diff --git a/src/locales/de/internet/index.ts b/src/locales/de/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/de/name/index.ts b/src/locales/de/name/index.ts index 59f7cc30add..ffa039e99b9 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; +}; export default name; diff --git a/src/locales/de_AT/address/index.ts b/src/locales/de_AT/address/index.ts index 88811abde36..f443e5820a9 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; +}; export default address; diff --git a/src/locales/de_AT/company/index.ts b/src/locales/de_AT/company/index.ts index d43fc701572..312df0c6384 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; +}; export default company; diff --git a/src/locales/de_AT/internet/index.ts b/src/locales/de_AT/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 3612b7baa67..d7fee674f19 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; +}; export default name; diff --git a/src/locales/de_CH/address/index.ts b/src/locales/de_CH/address/index.ts index 99dcf81bd06..a11f61d7d9e 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; +}; export default address; diff --git a/src/locales/de_CH/company/index.ts b/src/locales/de_CH/company/index.ts index d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/de_CH/internet/index.ts b/src/locales/de_CH/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/de_CH/name/index.ts b/src/locales/de_CH/name/index.ts index bb6626439aa..da97abbf4c8 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 = { +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 365551dc829..d6efb16281c 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; +}; export default address; diff --git a/src/locales/el/commerce/index.ts b/src/locales/el/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/el/company/index.ts b/src/locales/el/company/index.ts index a3e1cf1a24d..abdbc9f5334 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 181218e2007..2eecf444b70 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 = { +const hacker: HackerDefinitions = { abbreviation, adjective, noun, diff --git a/src/locales/el/internet/index.ts b/src/locales/el/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/el/name/index.ts b/src/locales/el/name/index.ts index 77b4c2eb216..e0c74acd52d 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 = { +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 78cb3ec842c..60c8078d1cb 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; +}; export default address; diff --git a/src/locales/en/company/index.ts b/src/locales/en/company/index.ts index a3e1cf1a24d..abdbc9f5334 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 495d9b6ff67..9da00b435a1 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 e1929cf1cfb..b72a2355c69 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 dcc3fef143a..67668f73061 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 = { +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 0bb1576e2b4..2c896fffba8 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; +}; export default address; diff --git a/src/locales/en_AU/company/index.ts b/src/locales/en_AU/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_AU/internet/index.ts b/src/locales/en_AU/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_AU/name/index.ts b/src/locales/en_AU/name/index.ts index a55032a062e..baa80784182 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 = { +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 83ae57b82fd..e1f1f576769 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; +}; export default address; diff --git a/src/locales/en_AU_ocker/company/index.ts b/src/locales/en_AU_ocker/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +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 5d0ba7d6da6..5726872bcb7 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 = { +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 7b938ed2843..9320c171100 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; +}; export default name; diff --git a/src/locales/en_CA/address/index.ts b/src/locales/en_CA/address/index.ts index 71ef1ced84a..7fcaaf57980 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; +}; export default address; diff --git a/src/locales/en_CA/internet/index.ts b/src/locales/en_CA/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 f3bd982ae11..24517b91f09 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; +}; export default address; diff --git a/src/locales/en_GB/internet/index.ts b/src/locales/en_GB/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_GH/address/index.ts b/src/locales/en_GH/address/index.ts index 24af1942a60..30977efcf38 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; +}; export default address; diff --git a/src/locales/en_GH/company/index.ts b/src/locales/en_GH/company/index.ts index d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/en_GH/internet/index.ts b/src/locales/en_GH/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_GH/name/index.ts b/src/locales/en_GH/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 365551dc829..d6efb16281c 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; +}; export default address; diff --git a/src/locales/en_IE/internet/index.ts b/src/locales/en_IE/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_IND/address/index.ts b/src/locales/en_IND/address/index.ts index 056eb39ab30..00199011665 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; +}; export default address; diff --git a/src/locales/en_IND/company/index.ts b/src/locales/en_IND/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_IND/internet/index.ts b/src/locales/en_IND/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 a55032a062e..baa80784182 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 = { +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 8f8c948ffb2..3a51212f9bb 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; +}; export default address; diff --git a/src/locales/en_NG/company/index.ts b/src/locales/en_NG/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_NG/internet/index.ts b/src/locales/en_NG/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_NG/name/index.ts b/src/locales/en_NG/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 723335b8533..5b2f27654b2 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; +}; export default address; diff --git a/src/locales/en_US/internet/index.ts b/src/locales/en_US/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +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 f2bd1a26432..682879e59a5 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; +}; export default phone_number; diff --git a/src/locales/en_ZA/address/index.ts b/src/locales/en_ZA/address/index.ts index 8f8c948ffb2..3a51212f9bb 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; +}; export default address; diff --git a/src/locales/en_ZA/company/index.ts b/src/locales/en_ZA/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/en_ZA/internet/index.ts b/src/locales/en_ZA/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/en_ZA/name/index.ts b/src/locales/en_ZA/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 d04c0c59981..fee735f1a2c 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 095c28a8833..da1d8077104 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; +}; export default address; diff --git a/src/locales/es/commerce/index.ts b/src/locales/es/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/es/company/index.ts b/src/locales/es/company/index.ts index f848fa63d22..401e3548761 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; +}; export default company; diff --git a/src/locales/es/internet/index.ts b/src/locales/es/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/es/name/index.ts b/src/locales/es/name/index.ts index b8cd692accc..8018f95efff 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 = { +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 34d93b3ddda..a23b16099e0 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; +}; export default address; diff --git a/src/locales/es_MX/commerce/index.ts b/src/locales/es_MX/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +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 a3e1cf1a24d..abdbc9f5334 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 c73e7beb6b3..8b0ef73eb86 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 = { +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 d6f8fce59b0..8799810e97a 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 = { +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 64b49f9847b..77d9222ab24 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; +}; export default address; diff --git a/src/locales/fa/commerce/index.ts b/src/locales/fa/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/fa/company/index.ts b/src/locales/fa/company/index.ts index a3e1cf1a24d..abdbc9f5334 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 161d247d94e..b67a2fe7333 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 = { +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 ffd544db710..4d5324752d4 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 = { +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 6735cd533f4..826d25a0aaf 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 = { +const vehicle: VehicleDefinitions = { fuel, manufacturer, model, diff --git a/src/locales/fi/name/index.ts b/src/locales/fi/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 9df13565c94..4ad1b8c7215 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; +}; export default address; diff --git a/src/locales/fr/company/index.ts b/src/locales/fr/company/index.ts index a3e1cf1a24d..abdbc9f5334 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 c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/fr/name/index.ts b/src/locales/fr/name/index.ts index ffd544db710..4d5324752d4 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 = { +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 f1d0952b534..f1b85954b10 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; +}; export default address; diff --git a/src/locales/fr_BE/internet/index.ts b/src/locales/fr_BE/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 806e2fdea57..c2a67693c9e 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 = { +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 71ef1ced84a..7fcaaf57980 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; +}; export default address; diff --git a/src/locales/fr_CA/internet/index.ts b/src/locales/fr_CA/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 1ea3c8e7780..ec4e22b9ec9 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; +}; export default address; diff --git a/src/locales/fr_CH/internet/index.ts b/src/locales/fr_CH/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/ge/address/index.ts b/src/locales/ge/address/index.ts index e2f034ad344..f47674c7a9d 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; +}; export default address; diff --git a/src/locales/ge/company/index.ts b/src/locales/ge/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/ge/internet/index.ts b/src/locales/ge/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ge/name/index.ts b/src/locales/ge/name/index.ts index 77b4c2eb216..e0c74acd52d 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 = { +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 bcf2af271c3..710a0b9c426 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; +}; export default address; diff --git a/src/locales/he/lorem/index.ts b/src/locales/he/lorem/index.ts index e1929cf1cfb..b72a2355c69 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 806e2fdea57..c2a67693c9e 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 = { +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 cc35ff34209..895b8d982f3 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; +}; export default address; diff --git a/src/locales/hr/internet/index.ts b/src/locales/hr/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/hr/name/index.ts b/src/locales/hr/name/index.ts index b8cd692accc..8018f95efff 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 = { +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 70698365343..37957dfe952 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 = { +const animal: AnimalDefinitions = { cat, dog, horse, diff --git a/src/locales/hu/finance/index.ts b/src/locales/hu/finance/index.ts index d1e16a9991c..c58e73a486a 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 = { +const finance: FinanceDefinitions = { account_type, transaction_type, }; diff --git a/src/locales/hu/internet/index.ts b/src/locales/hu/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/hu/name/index.ts b/src/locales/hu/name/index.ts index 54b02001916..fbc16c3d564 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 = { +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 7cc6fb21f98..978ecd196d7 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 = { +const word: WordDefinitions = { adjective, adverb, conjunction, diff --git a/src/locales/hy/address/index.ts b/src/locales/hy/address/index.ts index 9ae58258dec..57b0a1e8fbc 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; +}; export default address; diff --git a/src/locales/hy/commerce/index.ts b/src/locales/hy/commerce/index.ts index 8ad08ef73db..26b2864f1af 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 = { +const commerce: CommerceDefinitions = { color, }; diff --git a/src/locales/hy/internet/index.ts b/src/locales/hy/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/hy/name/index.ts b/src/locales/hy/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 be871ff74c0..c94d5ee1152 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; +}; export default address; diff --git a/src/locales/id_ID/company/index.ts b/src/locales/id_ID/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/id_ID/internet/index.ts b/src/locales/id_ID/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 57f814dc50d..9fd0141a818 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; +}; export default name; diff --git a/src/locales/it/address/index.ts b/src/locales/it/address/index.ts index ce53ed7a17b..8342cd85fe3 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; +}; export default address; diff --git a/src/locales/it/company/index.ts b/src/locales/it/company/index.ts index a3e1cf1a24d..abdbc9f5334 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 c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/it/name/index.ts b/src/locales/it/name/index.ts index c674f1a4112..4393e0e745e 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 = { +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 3d45d62f852..02681742a80 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; +}; export default address; diff --git a/src/locales/ja/lorem/index.ts b/src/locales/ja/lorem/index.ts index e1929cf1cfb..b72a2355c69 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 ad3a9da3211..e5ceaf3cd0a 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 = { +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 aab6f51bda6..895d0f10396 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; +}; export default address; diff --git a/src/locales/ko/company/index.ts b/src/locales/ko/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/ko/internet/index.ts b/src/locales/ko/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ko/name/index.ts b/src/locales/ko/name/index.ts index ad3a9da3211..e5ceaf3cd0a 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 = { +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 22f6789f781..c4e5091ad0f 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; +}; export default address; diff --git a/src/locales/lv/commerce/index.ts b/src/locales/lv/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/lv/company/index.ts b/src/locales/lv/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/lv/internet/index.ts b/src/locales/lv/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/lv/lorem/index.ts b/src/locales/lv/lorem/index.ts index e1929cf1cfb..b72a2355c69 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 4a67aef6628..3f757e95eed 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 = { +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 52320c09bbf..d15f9ae61a2 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; +}; export default address; diff --git a/src/locales/mk/company/index.ts b/src/locales/mk/company/index.ts index d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/mk/internet/index.ts b/src/locales/mk/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/mk/name/index.ts b/src/locales/mk/name/index.ts index db8c210f552..8c6e627e06d 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 = { +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 055bcc64617..eb2468ab446 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; +}; export default address; diff --git a/src/locales/nb_NO/company/index.ts b/src/locales/nb_NO/company/index.ts index d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/nb_NO/internet/index.ts b/src/locales/nb_NO/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/nb_NO/name/index.ts b/src/locales/nb_NO/name/index.ts index c674f1a4112..4393e0e745e 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 = { +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 337bd6260d9..ec4a46a8222 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; +}; export default address; diff --git a/src/locales/ne/company/index.ts b/src/locales/ne/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/ne/internet/index.ts b/src/locales/ne/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ne/name/index.ts b/src/locales/ne/name/index.ts index a55032a062e..baa80784182 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 = { +const name: NameDefinitions = { first_name, last_name, }; diff --git a/src/locales/nl/address/index.ts b/src/locales/nl/address/index.ts index 1c98e9fcc99..db1f0cbfd2f 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; +}; export default address; diff --git a/src/locales/nl/commerce/index.ts b/src/locales/nl/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/nl/company/index.ts b/src/locales/nl/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/nl/hacker/index.ts b/src/locales/nl/hacker/index.ts index 8c41988fa74..daf8d3c27bb 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 = { +const hacker: HackerDefinitions = { adjective, noun, phrase, diff --git a/src/locales/nl/internet/index.ts b/src/locales/nl/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/nl/name/index.ts b/src/locales/nl/name/index.ts index 12b174cfe51..6df85f13858 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; +}; export default name; diff --git a/src/locales/nl_BE/address/index.ts b/src/locales/nl_BE/address/index.ts index 9aea3c013c7..c21cb8b1db4 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; +}; export default address; diff --git a/src/locales/nl_BE/company/index.ts b/src/locales/nl_BE/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/nl_BE/internet/index.ts b/src/locales/nl_BE/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 4023f7d7cb0..9c4bab79462 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 = { +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 9aba4efbebc..9a7acbb88e9 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; +}; export default address; diff --git a/src/locales/pl/company/index.ts b/src/locales/pl/company/index.ts index 0ab3ff592e6..777ef05cbbc 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; +}; export default company; diff --git a/src/locales/pl/internet/index.ts b/src/locales/pl/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/pl/name/index.ts b/src/locales/pl/name/index.ts index ffd544db710..4d5324752d4 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 = { +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 27ad3901bdc..10be9fe3a78 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; +}; export default address; diff --git a/src/locales/pt_BR/commerce/index.ts b/src/locales/pt_BR/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +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 d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/pt_BR/internet/index.ts b/src/locales/pt_BR/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +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 335315b9411..d4c0e73a1df 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 = { +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 d0a5e21203d..3bd6ac41cf0 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; +}; export default address; diff --git a/src/locales/pt_PT/commerce/index.ts b/src/locales/pt_PT/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +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 c73e7beb6b3..8b0ef73eb86 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 = { +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 8c4f03946d4..6fbdcb53c30 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 = { +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 9b4199f6e12..5698ded14d5 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; +}; export default address; diff --git a/src/locales/ro/internet/index.ts b/src/locales/ro/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ro/name/index.ts b/src/locales/ro/name/index.ts index 9405aa80f40..b142fe88d6a 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 = { +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 22f6789f781..c4e5091ad0f 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; +}; export default address; diff --git a/src/locales/ru/commerce/index.ts b/src/locales/ru/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ru/company/index.ts b/src/locales/ru/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/ru/internet/index.ts b/src/locales/ru/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/ru/name/index.ts b/src/locales/ru/name/index.ts index b9493154138..6a0b4f3f02c 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 = { +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 009d9ad9a3a..2551894c00d 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; +}; export default address; diff --git a/src/locales/sk/company/index.ts b/src/locales/sk/company/index.ts index c4694c68bce..1b69a9d158d 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; +}; export default company; diff --git a/src/locales/sk/internet/index.ts b/src/locales/sk/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/sk/name/index.ts b/src/locales/sk/name/index.ts index 4a67aef6628..3f757e95eed 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 = { +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 addb740d0a1..1c99319a67d 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; +}; export default address; diff --git a/src/locales/sv/commerce/index.ts b/src/locales/sv/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/sv/company/index.ts b/src/locales/sv/company/index.ts index d6c3f79860a..f3027330988 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; +}; export default company; diff --git a/src/locales/sv/internet/index.ts b/src/locales/sv/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/sv/name/index.ts b/src/locales/sv/name/index.ts index ffd544db710..4d5324752d4 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 = { +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 62a2b1b2de6..8c8323e0925 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; +}; export default address; diff --git a/src/locales/tr/internet/index.ts b/src/locales/tr/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/tr/name/index.ts b/src/locales/tr/name/index.ts index 54b02001916..fbc16c3d564 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 = { +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 aaad7ae5f0e..3c11a3eb5fc 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 7eb3421ccbb..328e9c2cb20 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; +}; export default address; diff --git a/src/locales/uk/company/index.ts b/src/locales/uk/company/index.ts index 37db74f5127..6e91a4e29b3 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; +}; export default company; diff --git a/src/locales/uk/internet/index.ts b/src/locales/uk/internet/index.ts index c73e7beb6b3..8b0ef73eb86 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 = { +const internet: InternetDefinitions = { domain_suffix, free_email, }; diff --git a/src/locales/uk/name/index.ts b/src/locales/uk/name/index.ts index b9493154138..6a0b4f3f02c 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 = { +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 a04af9074df..8717b895b25 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; +}; export default address; diff --git a/src/locales/ur/animal/index.ts b/src/locales/ur/animal/index.ts index 20a7eb60a3e..1bcb8613686 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 = { +const animal: AnimalDefinitions = { bear, cow, crocodilia, diff --git a/src/locales/ur/commerce/index.ts b/src/locales/ur/commerce/index.ts index 621c60571bb..823fcbd2d93 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 = { +const commerce: CommerceDefinitions = { color, department, product_name, diff --git a/src/locales/ur/finance/index.ts b/src/locales/ur/finance/index.ts index d1e16a9991c..c58e73a486a 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 = { +const finance: FinanceDefinitions = { account_type, transaction_type, }; diff --git a/src/locales/ur/lorem/index.ts b/src/locales/ur/lorem/index.ts index e1929cf1cfb..b72a2355c69 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 335315b9411..d4c0e73a1df 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 = { +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 95ae439c18d..dc1ca3095a5 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; +}; export default address; diff --git a/src/locales/vi/company/index.ts b/src/locales/vi/company/index.ts index 204b062829e..eeb7716083a 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; +}; export default company; diff --git a/src/locales/vi/internet/index.ts b/src/locales/vi/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/vi/name/index.ts b/src/locales/vi/name/index.ts index 513b2c736ab..80631e1c77f 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 = { +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 d4ea9a131c3..1a01c95d0a9 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; +}; export default address; diff --git a/src/locales/zh_CN/name/index.ts b/src/locales/zh_CN/name/index.ts index ad3a9da3211..e5ceaf3cd0a 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 = { +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 d4ea9a131c3..1a01c95d0a9 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; +}; export default address; diff --git a/src/locales/zh_TW/name/index.ts b/src/locales/zh_TW/name/index.ts index ad3a9da3211..e5ceaf3cd0a 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 = { +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 0e939eaddf4..0d9219e7b1f 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; +}; export default address; diff --git a/src/locales/zu_ZA/company/index.ts b/src/locales/zu_ZA/company/index.ts index 4431aca25bb..a7c20c6c039 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 = { +const company: CompanyDefinitions = { suffix, }; diff --git a/src/locales/zu_ZA/internet/index.ts b/src/locales/zu_ZA/internet/index.ts index 5d0ba7d6da6..5726872bcb7 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 = { +const internet: InternetDefinitions = { domain_suffix, }; diff --git a/src/locales/zu_ZA/name/index.ts b/src/locales/zu_ZA/name/index.ts index c90a45ef586..ea2e91811d4 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 = { +const name: NameDefinitions = { female_first_name, first_name, last_name,