MCPcopy Index your code
hub / github.com/microsoft/typescript-go / handleGetExtendsTypeOfType

Method handleGetExtendsTypeOfType

internal/api/session.go:1568–1570  ·  view source on GitHub ↗
(_ context.Context, params *GetTypePropertyParams)

Source from the content-addressed store, hash-verified

1566}
1567
1568func (s *Session) handleGetExtendsTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1569 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsConditionalType().ExtendsType() })
1570}
1571
1572func (s *Session) handleGetBaseTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1573 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsSubstitutionType().BaseType() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

ExtendsTypeMethod · 0.80
AsConditionalTypeMethod · 0.80

Tested by

no test coverage detected