Skip to content

Commit

Permalink
docs: replace deprecated datatype.uuid() with string.uuid() in README
Browse files Browse the repository at this point in the history
  • Loading branch information
saranatour1 authored Jun 15, 2023
1 parent 351a7d7 commit 51d3af1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 51d3af1

Please sign in to comment.