From: Jérôme Benoit Date: Mon, 25 Jan 2021 08:28:13 +0000 (+0100) Subject: Make filename = default exported class name. X-Git-Tag: v1.0.1-0~117 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=144cabe085e5e1f3821aecb2ef8f388a1030b92b;p=e-mobility-charging-stations-simulator.git Make filename = default exported class name. Signed-off-by: Jérôme Benoit --- diff --git a/src/start.ts b/src/start.ts index aa3cfdef..90eb5161 100644 --- a/src/start.ts +++ b/src/start.ts @@ -1,7 +1,7 @@ import Configuration from './utils/Configuration'; import WorkerData from './types/WorkerData'; import WorkerFactory from './worker/WorkerFactory'; -import Wrk from './worker/Worker'; +import Wrk from './worker/Wrk'; class Bootstrap { static start() { diff --git a/src/worker/WorkerFactory.ts b/src/worker/WorkerFactory.ts index 13880b2f..067188d8 100644 --- a/src/worker/WorkerFactory.ts +++ b/src/worker/WorkerFactory.ts @@ -1,7 +1,7 @@ import Configuration from '../utils/Configuration'; import WorkerPool from './WorkerPool'; import WorkerSet from './WorkerSet'; -import Wrk from './Worker'; +import Wrk from './Wrk'; export default class WorkerFactory { public static getWorkerImpl(workerScript: string): Wrk { diff --git a/src/worker/WorkerPool.ts b/src/worker/WorkerPool.ts index d04926e7..f1a6cc1f 100644 --- a/src/worker/WorkerPool.ts +++ b/src/worker/WorkerPool.ts @@ -3,7 +3,7 @@ import Constants from '../utils/Constants'; import Pool from 'worker-threads-pool'; import Utils from '../utils/Utils'; import WorkerData from '../types/WorkerData'; -import Wrk from './Worker'; +import Wrk from './Wrk'; export default class WorkerPool extends Wrk { private pool: Pool; diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index a8aa8a37..50b99f02 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -2,7 +2,7 @@ import Constants from '../utils/Constants'; import Utils from '../utils/Utils'; import { Worker } from 'worker_threads'; import WorkerData from '../types/WorkerData'; -import Wrk from './Worker'; +import Wrk from './Wrk'; export default class WorkerSet extends Wrk { public maxElementsPerWorker: number; diff --git a/src/worker/Worker.ts b/src/worker/Wrk.ts similarity index 100% rename from src/worker/Worker.ts rename to src/worker/Wrk.ts