* This is similar to `getBaseConstraintOfType` except it returns the input type if there's no base constraint, instead of `undefined` * It also doesn't map indexes to `string`, as where this is used this would be unneeded (and likely undesirable)
(type)
| 58940 | * It also doesn't map indexes to `string`, as where this is used this would be unneeded (and likely undesirable) |
| 58941 | */ |
| 58942 | function getBaseConstraintOrType(type) { |
| 58943 | return getBaseConstraintOfType(type) || type; |
| 58944 | } |
| 58945 | function hasNonCircularBaseConstraint(type) { |
| 58946 | return getResolvedBaseConstraint(type) !== circularConstraintType; |
| 58947 | } |
no test coverage detected