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

Method handleGetTargetOfType

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

Source from the content-addressed store, hash-verified

1508}
1509
1510func (s *Session) handleGetTargetOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1511 return s.resolveTypePropertyOfType(params, (*checker.Type).Target)
1512}
1513
1514func (s *Session) handleGetFreshTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1515 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsLiteralType().FreshType() })

Callers 1

HandleRequestMethod · 0.95

Calls 1

Tested by

no test coverage detected