⬅️ Back to Table of Contents
📄 index.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
3 |
📦 Imports |
2 |
📚 Table of Contents
🛠️ File Location:
📂 packages/rxjs/toObserver/index.ts
📦 Imports
Name |
Source |
NextObserver |
rxjs |
Ref |
vue |
Functions
toObserver(value: Ref<T>): NextObserver<T>
Code
export function toObserver<T>(value: Ref<T>): NextObserver<T> {
return {
next: (val: T) => {
value.value = val
},
}
}
- Parameters:
value: Ref<T>
- Return Type:
NextObserver<T>
next(val: T): void
Code
(val: T) => {
value.value = val
}
- Parameters:
val: T
- Return Type:
void
next(val: T): void
Code
(val: T) => {
value.value = val
}
- Parameters:
val: T
- Return Type:
void