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

Method handleGetBaseTypeOfType

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

Source from the content-addressed store, hash-verified

1570}
1571
1572func (s *Session) handleGetBaseTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1573 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsSubstitutionType().BaseType() })
1574}
1575
1576func (s *Session) handleGetConstraintOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1577 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsSubstitutionType().SubstConstraint() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

BaseTypeMethod · 0.80
AsSubstitutionTypeMethod · 0.80

Tested by

no test coverage detected