-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
I cannot use an rxjs.Observable with derived because svelte's Unsubscriber is not typed properly:
svelte/src/runtime/store/index.ts
Lines 6 to 7 in 3bc791b
| /** Unsubscribes from value updates. */ | |
| export type Unsubscriber = () => void; |
It should be typed as
export type Unsubscriber = { unsubscribe(): void; } | (() => void);Reproduction
import { of } from 'rxjs'
const value = of(0);
derived(value, value => value + 2) // type errorLogs
No response
System Info
not relevantSeverity
annoyance
Metadata
Metadata
Assignees
Labels
No labels