import { Store } from './Store' ; interface Stores { [ key ] : Store ; } /**
 * Storage for anything
 */ export class Storage { static stores : Stores = { } ; static set ( key , value ) { const store = Storage . stores [ key ] ; if ( ! store || ! store . setState ) { Storage . stores [ key ] = value ; } } static get < S = any > ( key ) { return Storage . stores [ key ] ; } }