aboutsummaryrefslogtreecommitdiff
path: root/src/definitions
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2023-02-02 19:56:31 +0700
committerGitHub <[email protected]>2023-02-02 13:56:31 +0100
commit1ae2f6f489bcf7b317202877af3419ecc01bc1d0 (patch)
treec6060b154328834ded18c3adf47d988a60e00755 /src/definitions
parent9c3618d66550b7a72cade402b035ecdbcb485625 (diff)
downloadfaker-1ae2f6f489bcf7b317202877af3419ecc01bc1d0.tar.xz
faker-1ae2f6f489bcf7b317202877af3419ecc01bc1d0.zip
fix(person): change fullName to use name patterns (#1637)
Diffstat (limited to 'src/definitions')
-rw-r--r--src/definitions/person.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/definitions/person.ts b/src/definitions/person.ts
index 773d4fb8..b6096e81 100644
--- a/src/definitions/person.ts
+++ b/src/definitions/person.ts
@@ -26,9 +26,9 @@ export type PersonDefinitions = LocaleEntry<{
suffix: string[];
/**
- * A list of patterns used to generate names.
+ * A weighted list of patterns used to generate names.
*/
- name: string[];
+ name: Array<{ value: string; weight: number }>;
bio_patterns?: string[];