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

Method isGenericStringLikeType

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

Source from the content-addressed store, hash-verified

26410}
26411
26412func (c *Checker) isGenericStringLikeType(t *Type) bool {
26413 return t.flags&(TypeFlagsTemplateLiteral|TypeFlagsStringMapping) != 0 && !c.isPatternLiteralType(t)
26414}
26415
26416func forEachType(t *Type, f func(t *Type)) {
26417 if t.flags&TypeFlagsUnion != 0 {

Callers 2

getGenericObjectFlagsMethod · 0.95
getIntersectionTypeExMethod · 0.95

Calls 1

isPatternLiteralTypeMethod · 0.95

Tested by

no test coverage detected