interface MemoryState { [ key ] : string | number ; } export class MemoryRouter { private memoryState : MemoryState ; constructor ( initialState = { } ) { this . memoryState = initialState ; } write ( routeState ) { this . memoryState = routeState ; } read ( ) { return this . memoryState ; } createURL ( ) { return '' ; } onUpdate ( ) { return { } ; } dispose ( ) { } }