Resolved is a type of TMP (Type Meta Programming) type which converts
its argument as a resolved type that erased every method properties.
If the target argument is a built-in class which returns its origin primitive type
through the valueOf() method like the String or Number, its return type would
be the string or number. Otherwise, the built-in class does not have the
valueOf() method, the return type would be same with the target argument.
Otherwise, the target argument is a type of custom class, all of its custom methods
would be erased and its prototype would be changed to the primitive object.
Therefore, return type of the TMP type finally be the resolved object.
Resolved type erased every methods.
Resolvedis a type of TMP (Type Meta Programming) type which converts its argument as a resolved type that erased every method properties.If the target argument is a built-in class which returns its origin primitive type through the
valueOf()method like theStringorNumber, its return type would be thestringornumber. Otherwise, the built-in class does not have thevalueOf()method, the return type would be same with the target argument.Otherwise, the target argument is a type of custom class, all of its custom methods would be erased and its prototype would be changed to the primitive
object. Therefore, return type of the TMP type finally be the resolved object.BooleanbooleanNumbernumberBigIntbigintStringstringClassinterface