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/lorem | |
| parent | 1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff) | |
| download | faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip | |
feat(modules): export module interfaces (#932)
Diffstat (limited to 'src/modules/lorem')
| -rw-r--r-- | src/modules/lorem/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index e086751d..4745b0e9 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -3,10 +3,10 @@ import type { Faker } from '../..'; /** * Module to generate random texts and words. */ -export class Lorem { +export class LoremModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(Lorem.prototype)) { + for (const name of Object.getOwnPropertyNames(LoremModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } @@ -181,7 +181,7 @@ export class Lorem { * @since 3.1.0 */ text(): string { - const methods: Array<keyof Lorem> = [ + const methods: Array<keyof LoremModule> = [ 'word', 'words', 'sentence', |
