How to fix Cannot augment module 'X' outside of its own definition in TypeScript | DevErrors