Skip to content

Commit

Permalink
chore: register the fake function
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 11, 2022
1 parent 3aa8be8 commit ab384aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Datatype } from './datatype';
import { Fake } from './fake';
import { Mersenne } from './mersenne';
import { Random } from './random';

Expand Down Expand Up @@ -151,6 +152,7 @@ export class Faker {

seedValue?: any[] | any;

readonly fake: Fake['fake'] = new Fake(this).fake;
readonly mersenne: Mersenne = new Mersenne();
random: Random = new Random(this);
datatype: Datatype = new Datatype(this);
Expand Down

0 comments on commit ab384aa

Please sign in to comment.