refactor(util) getType