Skip to content

⬅️ Back to Table of Contents

📄 type-arguments2.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
📊 Variables & Constants 1
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/instantiation-expressions/type-arguments2.ts

Variables & Constants

Name Type Kind Value Exported
makeStringBox (value: string) => { value: string; } const makeBox<string>

Functions

makeBox(value: T): { value: T; }

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

Type Aliases

BoxFunc<T>

type BoxFunc<T> = typeof makeBox<T>;