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

Method handleGetTypesOfType

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

Source from the content-addressed store, hash-verified

1520}
1521
1522func (s *Session) handleGetTypesOfType(_ context.Context, params *GetTypePropertyParams) ([]*TypeResponse, error) {
1523 return s.resolveTypeArrayPropertyOfType(params, (*checker.Type).Types)
1524}
1525
1526func (s *Session) handleGetTypeParametersOfType(_ context.Context, params *GetTypePropertyParams) ([]*TypeResponse, error) {
1527 return s.resolveTypeArrayPropertyOfType(params, func(t *checker.Type) []*checker.Type { return t.AsInterfaceType().TypeParameters() })

Callers 1

HandleRequestMethod · 0.95

Calls 1

Tested by

no test coverage detected