getRangesForUnit from type.range or type.getRangesForUnit