* Gets the default type for a type parameter. * * If the type parameter is the result of an instantiation, this gets the instantiated * default type of its target. If the type parameter has no default type or the default is * circular, `undefined` is returned.
(typeParameter)
| 59092 | * circular, `undefined` is returned. |
| 59093 | */ |
| 59094 | function getDefaultFromTypeParameter(typeParameter) { |
| 59095 | var defaultType = getResolvedTypeParameterDefault(typeParameter); |
| 59096 | return defaultType !== noConstraintType && defaultType !== circularConstraintType ? defaultType : undefined; |
| 59097 | } |
| 59098 | function hasNonCircularTypeParameterDefault(typeParameter) { |
| 59099 | return getResolvedTypeParameterDefault(typeParameter) !== circularConstraintType; |
| 59100 | } |
no test coverage detected
searching dependent graphs…