import { Store } from 'shared/libs/stores' ; import { Parties } from './types' ; export default class StoreParties extends Store < Parties > { state : Parties = { } ; setParties ( parties ) { this . setState ( parties ) ; } bySid ( sid ) { return this . state [ sid ] || [ ] ; } }