Skip to content

Commit

Permalink
docs(usage): type definitions aren't strictly necessary (#2840)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzn0x authored Apr 22, 2024
1 parent b754dc6 commit a1b9ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import { faker } from '@faker-js/faker';
// CJS
const { faker } = require('@faker-js/faker');

export function createRandomUser(): User {
export function createRandomUser() {
return {
userId: faker.string.uuid(),
username: faker.internet.userName(),
Expand All @@ -74,7 +74,7 @@ export function createRandomUser(): User {
};
}

export const USERS: User[] = faker.helpers.multiple(createRandomUser, {
export const users = faker.helpers.multiple(createRandomUser, {
count: 5,
});
```
Expand Down

0 comments on commit a1b9ffd

Please sign in to comment.