import { singleton } from "tsyringe" ; @ singleton ( ) export class PersistentMemoryService { data : any = { } ; set ( data ) { this . data = { ... this . data , ... data } ; } get ( ) { return this . data ; } }