aboutsummaryrefslogtreecommitdiff
path: root/src/definitions
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2024-02-28 02:41:48 +0700
committerGitHub <[email protected]>2024-02-27 20:41:48 +0100
commit0d4cba637cdd38e7757ecca1b7eae75d7a737fa8 (patch)
tree27983120b5d0d1d940b6dc273e0faebee76ff74d /src/definitions
parent682a4276f13d7b8f48e1bd8aafcf011c7bd10390 (diff)
downloadfaker-0d4cba637cdd38e7757ecca1b7eae75d7a737fa8.tar.xz
faker-0d4cba637cdd38e7757ecca1b7eae75d7a737fa8.zip
refactor(person)!: flatten jobs definitions (#2505)
Diffstat (limited to 'src/definitions')
-rw-r--r--src/definitions/index.ts2
-rw-r--r--src/definitions/person.ts13
2 files changed, 4 insertions, 11 deletions
diff --git a/src/definitions/index.ts b/src/definitions/index.ts
index cb240115..2d979971 100644
--- a/src/definitions/index.ts
+++ b/src/definitions/index.ts
@@ -17,7 +17,7 @@ export type { LocationDefinition } from './location';
export type { LoremDefinition } from './lorem';
export type { MetadataDefinition } from './metadata';
export type { MusicDefinition } from './music';
-export type { PersonDefinition, PersonTitleDefinition } from './person';
+export type { PersonDefinition } from './person';
export type { PhoneNumberDefinition } from './phone_number';
export type { ScienceDefinition } from './science';
export type { SystemDefinition, SystemMimeTypeEntryDefinition } from './system';
diff --git a/src/definitions/person.ts b/src/definitions/person.ts
index e3eeb275..87250ed9 100644
--- a/src/definitions/person.ts
+++ b/src/definitions/person.ts
@@ -39,18 +39,11 @@ export type PersonDefinition = LocaleEntry<{
bio_pattern: string[];
- title: PersonTitleDefinition;
+ job_descriptor: string[];
+ job_area: string[];
+ job_type: string[];
job_title_pattern: string[];
western_zodiac_sign: string[];
}>;
-
-/**
- * The possible definitions related to people's titles.
- */
-export type PersonTitleDefinition = LocaleEntry<{
- descriptor: string[];
- job: string[];
- level: string[];
-}>;