From 48a7af4f0470115945ab166b540d0bedc7e5eb20 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 6 Nov 2023 09:40:49 +0100 Subject: refactor: simplify module creation (#2485) --- src/modules/system/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/modules/system') diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index 8a21a39b..fa38d6ce 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -1,5 +1,4 @@ -import type { Faker } from '../..'; -import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; +import { ModuleBase } from '../../internal/module-base'; const commonFileTypes = ['video', 'audio', 'image', 'text', 'application']; @@ -36,11 +35,7 @@ const CRON_DAY_OF_WEEK = [ /** * Generates fake data for many computer systems properties. */ -export class SystemModule { - constructor(private readonly faker: Faker) { - bindThisToMemberFunctions(this); - } - +export class SystemModule extends ModuleBase { /** * Returns a random file name with extension. * -- cgit v1.2.3