fix(view) getType: add return