Skip to content

⬅️ Back to Table of Contents

📄 type-predicate-asserts2.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/functions/function-expression/type-predicate-asserts2.ts

Functions

foo(arg: any): asserts arg is T

Code
function (arg: any): asserts arg is T {}
  • Parameters:
  • arg: any
  • Return Type: asserts arg is T

Type Aliases

T

type T = string;