Skip to content

⬅️ Back to Table of Contents

📄 type-query-with-parameters.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/type-declaration/type-query-with-parameters.ts

Functions

foo(y: T): { y: T; }

Code
function foo<T>(y: T) {
  return { y };
}
  • Parameters:
  • y: T
  • Return Type: { y: T; }

Type Aliases

type Foo<T> = typeof foo<T>;