Skip to content

Commit

Permalink
docs: use interface instead of class (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
devloop01 authored Nov 21, 2022
1 parent 652d6ee commit f9a44c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ import type { SexType } from '@faker-js/faker';

type SubscriptionTier = 'free' | 'basic' | 'business';

class User {
interface User {
_id: string;
avatar: string;
birthday: Date;
Expand All @@ -112,7 +112,7 @@ Let's create our first user factory function:
```ts
import { faker } from '@faker-js/faker';

class User { ... }
interface User { ... }

function createRandomUser(): User {
return {
Expand Down

0 comments on commit f9a44c8

Please sign in to comment.