Skip to content

⬅️ Back to Table of Contents

📄 type-predicate2.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/tests/fixtures/functions/arrow/type-predicate2.ts

Functions

foo(arg: any): arg is T

Code
(arg: any): arg is T => {
  return typeof arg === 'string';
}
  • Parameters:
  • arg: any
  • Return Type: arg is T

Type Aliases

T

type T = string;