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

Method handleGetObjectTypeOfType

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

Source from the content-addressed store, hash-verified

1554}
1555
1556func (s *Session) handleGetObjectTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1557 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsIndexedAccessType().ObjectType() })
1558}
1559
1560func (s *Session) handleGetIndexTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1561 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsIndexedAccessType().IndexType() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

ObjectTypeMethod · 0.80
AsIndexedAccessTypeMethod · 0.80

Tested by

no test coverage detected