Skip to content

⬅️ Back to Table of Contents

📄 index.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 3
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/shared/isDefined/index.ts

📦 Imports

Name Source
ComputedRef vue
Ref vue
unref vue

Functions

isDefined(v: ComputedRef<T>): v is ComputedRef<Exclude<T, null | undefined>>

Code
export function isDefined<T>(v: ComputedRef<T>): v is ComputedRef<Exclude<T, null | undefined>>
  • Parameters:
  • v: ComputedRef<T>
  • Return Type: v is ComputedRef<Exclude<T, null | undefined>>

Type Aliases

IsDefinedReturn

type IsDefinedReturn = boolean;