import { GlobalState } from "../models/domain/global-state"; export class GlobalStateFactory { private globalStateConstructor: new (init: Partial) => T; constructor(globalStateConstructor: new (init: Partial) => T) { this.globalStateConstructor = globalStateConstructor; } create(args?: Partial) { return new this.globalStateConstructor(args); } }