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

Method handleGetRegularTypeOfType

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

Source from the content-addressed store, hash-verified

1516}
1517
1518func (s *Session) handleGetRegularTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1519 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsLiteralType().RegularType() })
1520}
1521
1522func (s *Session) handleGetTypesOfType(_ context.Context, params *GetTypePropertyParams) ([]*TypeResponse, error) {
1523 return s.resolveTypeArrayPropertyOfType(params, (*checker.Type).Types)

Callers 1

HandleRequestMethod · 0.95

Calls 3

RegularTypeMethod · 0.80
AsLiteralTypeMethod · 0.80

Tested by

no test coverage detected