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

Method Distributed

internal/checker/types.go:721–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

719}
720
721func (t *Type) Distributed() []*Type {
722 switch {
723 case t.flags&TypeFlagsUnion != 0:
724 return t.AsUnionType().types
725 case t.flags&TypeFlagsNever != 0:
726 return nil
727 }
728 return []*Type{t}
729}
730
731// Common accessors
732

Callers 13

matchesMethod · 0.95
getDeclarationsFromTypeFunction · 0.80
inferFromTypesMethod · 0.80
getSiblingsOfContextMethod · 0.80
matchesMethod · 0.80
mapTypesByKeyPropertyMethod · 0.80
hasExcessPropertiesMethod · 0.80

Calls 1

AsUnionTypeMethod · 0.95

Tested by

no test coverage detected