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/system | |
| parent | 1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff) | |
| download | faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip | |
feat(modules): export module interfaces (#932)
Diffstat (limited to 'src/modules/system')
| -rw-r--r-- | src/modules/system/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index 3700a2d8..860ab7b9 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -35,10 +35,10 @@ const CRON_DAY_OF_WEEK = [ /** * Generates fake data for many computer systems properties. */ -export class System { +export class SystemModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(System.prototype)) { + for (const name of Object.getOwnPropertyNames(SystemModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } |
