Skip to content

Commit ffe3186

Browse files
MohdImran001Shinigami92
authored andcommitted
feat: add word import in index.ts
1 parent ab54bd5 commit ffe3186

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Name } from './name';
1212
import { Random } from './random';
1313
import { System } from './system';
1414
import { Time } from './time';
15+
import { Word } from './word';
1516

1617
export interface FakerOptions {
1718
locales?: string[];
@@ -192,7 +193,7 @@ export class Faker {
192193
readonly system: System = new System(this);
193194
readonly time: Time = new Time();
194195
readonly vehicle = new (require('./vehicle'))(this);
195-
readonly word = new (require('./word'))(this);
196+
readonly word: Word = new Word(this);
196197

197198
constructor(opts: FakerOptions = {}) {
198199
this.locales = this.locales || opts.locales || {};

0 commit comments

Comments
 (0)