aboutsummaryrefslogtreecommitdiff
path: root/src/modules/word
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/word')
-rw-r--r--src/modules/word/index.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/word/index.ts b/src/modules/word/index.ts
index 93c56829..0408f3cf 100644
--- a/src/modules/word/index.ts
+++ b/src/modules/word/index.ts
@@ -1,16 +1,11 @@
-import type { Faker } from '../..';
import { FakerError } from '../../errors/faker-error';
-import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions';
+import { ModuleBase } from '../../internal/module-base';
import { filterWordListByLength } from './filter-word-list-by-length';
/**
* Module to return various types of words.
*/
-export class WordModule {
- constructor(private readonly faker: Faker) {
- bindThisToMemberFunctions(this);
- }
-
+export class WordModule extends ModuleBase {
/**
* Returns an adjective of random or optionally specified length.
*