Using window keyword we can achieve. See below
declare global { interface Window { MyNamespace: any; } } window.MyNamespace = window.MyNamespace || {};
I need to reuse my Javascript module in typescript for my angular application. Can you guide me how to do that ?