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

Method handleGetTypeParametersOfType

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

Source from the content-addressed store, hash-verified

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() })
1528}
1529
1530func (s *Session) handleGetOuterTypeParametersOfType(_ context.Context, params *GetTypePropertyParams) ([]*TypeResponse, error) {
1531 return s.resolveTypeArrayPropertyOfType(params, func(t *checker.Type) []*checker.Type { return t.AsInterfaceType().OuterTypeParameters() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

AsInterfaceTypeMethod · 0.65
TypeParametersMethod · 0.45

Tested by

no test coverage detected