From ec71c0fde94a57c9016c6a25eccae52d1c62ba07 Mon Sep 17 00:00:00 2001 From: fzn0x Date: Sun, 21 Apr 2024 23:50:20 +0700 Subject: [PATCH] docs(usage): type definitions aren't strictly necessary type definitions aren't strictly necessary here --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 597436ddf18..eec7145a3a0 100644 --- a/README.md +++ b/README.md @@ -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(), @@ -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, }); ```