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 13, 2022
1 parent 24c22ef commit 4a690f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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,7 +152,7 @@ export class Faker {

seedValue?: any[] | any;

readonly fake = new (require('./fake'))(this).fake;
readonly fake: Fake['fake'] = new Fake(this).fake;
readonly unique = new (require('./unique'))(this).unique;

readonly mersenne: Mersenne = new Mersenne();
Expand Down

0 comments on commit 4a690f9

Please sign in to comment.