fix(types): HashMap is a class while Map is an Interface