Add resolve ref for type.