aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSara <[email protected]>2023-06-16 20:52:58 +0300
committerGitHub <[email protected]>2023-06-16 19:52:58 +0200
commitb9008bfceda52fe0940d15aa01555247b6ff83dc (patch)
tree74d9625b68d8128797219ac9adcc7763ff8890d0 /docs
parent631f732cce775eba130e440e016dd58bc05c4a58 (diff)
downloadfaker-b9008bfceda52fe0940d15aa01555247b6ff83dc.tar.xz
faker-b9008bfceda52fe0940d15aa01555247b6ff83dc.zip
docs: replace deprecated datatype.uuid() with string.uuid() (#2214)
Diffstat (limited to 'docs')
-rw-r--r--docs/guide/usage.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/guide/usage.md b/docs/guide/usage.md
index 452e415c..0cdfb9c4 100644
--- a/docs/guide/usage.md
+++ b/docs/guide/usage.md
@@ -166,7 +166,7 @@ interface User { ... }
function createRandomUser(): User {
return {
- _id: faker.datatype.uuid(),
+ _id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email: faker.internet.email(),
@@ -198,7 +198,7 @@ function createRandomUser(): User {
const email = faker.internet.email({ firstName, lastName });
return {
- _id: faker.datatype.uuid(),
+ _id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email,
@@ -238,7 +238,7 @@ function createRandomUser(): User {
]);
return {
- _id: faker.datatype.uuid(),
+ _id: faker.string.uuid(),
avatar: faker.image.avatar(),
birthday: faker.date.birthdate(),
email,