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

Method isTypeAssignableTo

internal/checker/relater.go:150–152  ·  view source on GitHub ↗
(source *Type, target *Type)

Source from the content-addressed store, hash-verified

148}
149
150func (c *Checker) isTypeAssignableTo(source *Type, target *Type) bool {
151 return c.isTypeRelatedTo(source, target, c.assignableRelation)
152}
153
154func (c *Checker) isTypeSubtypeOf(source *Type, target *Type) bool {
155 return c.isTypeRelatedTo(source, target, c.subtypeRelation)

Calls 1

isTypeRelatedToMethod · 0.95

Tested by

no test coverage detected