Skip to content

⬅️ Back to Table of Contents

📄 infer-type-constraint.ts

📊 Analysis Summary

Metric Count
📑 Type Aliases 2

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/type-declaration/infer-type-constraint.ts

Type Aliases

X

type X = string | number;

Id<T>

type Id<T> = T extends { id: infer Id extends X } ? Id : never;