import { Singleton } from "../../src/Decorator"; @Singleton() export class TestComponent{ private data: string[] = [] pushData(str: string){ this.data.push(str) } getData(){ return this.data } }