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

Method handleGetCheckTypeOfType

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

Source from the content-addressed store, hash-verified

1562}
1563
1564func (s *Session) handleGetCheckTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1565 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsConditionalType().CheckType() })
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() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

CheckTypeMethod · 0.80
AsConditionalTypeMethod · 0.80

Tested by

no test coverage detected