MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getConstraintOfConditionalType

Method getConstraintOfConditionalType

internal/checker/checker.go:17161–17166  ·  view source on GitHub ↗
(t *Type)

Source from the content-addressed store, hash-verified

17159}
17160
17161func (c *Checker) getConstraintOfConditionalType(t *Type) *Type {
17162 if c.hasNonCircularBaseConstraint(t) {
17163 return c.getConstraintFromConditionalType(t)
17164 }
17165 return nil
17166}
17167
17168func (c *Checker) getConstraintFromConditionalType(t *Type) *Type {
17169 constraint := c.getConstraintOfDistributiveConditionalType(t)

Callers 2

isConstTypeVariableMethod · 0.95
getConstraintOfTypeMethod · 0.95

Tested by

no test coverage detected