Api#type() use this function to get the constructor for a type