import { Store } from './types' // (not a type) export default class SimpleSore implements Store { constructor(private state: G){} get(): G { return this.state } update(newState: Partial) { Object.assign(this.state, newState) } }