diff options
| author | Matt Mayer <[email protected]> | 2024-03-12 18:01:00 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-12 11:01:00 +0000 |
| commit | e130549e82a3d59af46f2d595ed47fa9a39724a3 (patch) | |
| tree | 13756af384807ff792a8aa8a4d2c62dda056e613 /src/definitions | |
| parent | aade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff) | |
| download | faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip | |
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/phone_number.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index c6543c85..c77bbb91 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -12,5 +12,18 @@ export type PhoneNumberDefinition = LocaleEntry<{ * * @see faker.helpers.replaceSymbolWithNumber(format): For more information about how the patterns are used. */ - formats: string[]; + format: { + /** + * Formats for a human-input phone number, e.g. `555-770-7727` or `555.770.7727 x1234` + */ + human: string[]; + /** + * Formats for a phone number in a standardized national format, e.g. `(555) 123-4567`. + */ + national: string[]; + /** + * Formats for a phone number in the standardised E.123 format, e.g. `+15551234567` + */ + international: string[]; + }; }>; |
