diff options
| author | Sara <[email protected]> | 2023-06-16 20:52:58 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-16 19:52:58 +0200 |
| commit | b9008bfceda52fe0940d15aa01555247b6ff83dc (patch) | |
| tree | 74d9625b68d8128797219ac9adcc7763ff8890d0 | |
| parent | 631f732cce775eba130e440e016dd58bc05c4a58 (diff) | |
| download | faker-b9008bfceda52fe0940d15aa01555247b6ff83dc.tar.xz faker-b9008bfceda52fe0940d15aa01555247b6ff83dc.zip | |
docs: replace deprecated datatype.uuid() with string.uuid() (#2214)
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | docs/guide/usage.md | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -64,7 +64,7 @@ const { faker } = require('@faker-js/faker'); export function createRandomUser(): User { return { - userId: faker.datatype.uuid(), + userId: faker.string.uuid(), username: faker.internet.userName(), email: faker.internet.email(), avatar: faker.image.avatar(), 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, |
