import { Undefinable } from "../Types"; import BaseModelState from './BaseModelState'; import { IModelState } from './IModelState'; /** Provides a mutatable state that can update registered components to the state */ export default class ModelState extends BaseModelState implements IModelState { /** Creates a new ModelState */ constructor(); /** * Creates a new ModelState * * @param initialValue The initial value of the state */ constructor(initialValue: T); /** Gets the current value of the ModelState */ get value(): Undefinable; /** Sets the current value of the ModelState and invokes all subscriptions */ set value(value: Undefinable); }