How to fix Cannot use namespace as a value in TypeScript | DevErrors