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

Method handleGetFreshTypeOfType

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

Source from the content-addressed store, hash-verified

1512}
1513
1514func (s *Session) handleGetFreshTypeOfType(_ context.Context, params *GetTypePropertyParams) (*TypeResponse, error) {
1515 return s.resolveTypePropertyOfType(params, func(t *checker.Type) *checker.Type { return t.AsLiteralType().FreshType() })
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() })

Callers 1

HandleRequestMethod · 0.95

Calls 3

FreshTypeMethod · 0.80
AsLiteralTypeMethod · 0.80

Tested by

no test coverage detected