diff options
| author | Shinigami <[email protected]> | 2022-09-09 01:18:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-08 17:18:57 +0000 |
| commit | b9884d098d6e14001da36acfba6fbfebdcef8fea (patch) | |
| tree | 255dc8698618dfdb0de268f6f3db9bca94b84e83 /src/modules/word | |
| parent | 1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff) | |
| download | faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip | |
feat(modules): export module interfaces (#932)
Diffstat (limited to 'src/modules/word')
| -rw-r--r-- | src/modules/word/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/word/index.ts b/src/modules/word/index.ts index 4faa4352..725c0c42 100644 --- a/src/modules/word/index.ts +++ b/src/modules/word/index.ts @@ -28,10 +28,10 @@ function filterWordListByLength(options: { /** * Module to return various types of words. */ -export class Word { +export class WordModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(Word.prototype)) { + for (const name of Object.getOwnPropertyNames(WordModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } |
