We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b4e485 commit 6ff223aCopy full SHA for 6ff223a
src-commons-atom/disposable/index.ts
@@ -1,7 +1,7 @@
1
-import type {Subscription} from "rxjs"
+import type { Subscription } from "rxjs"
2
import { DisposableLike } from "atom"
3
4
// convert rxjs Subscription to Atom DisposableLike (rename unsubscribe to dispose)
5
export function disposableFromSubscription(subs: Subscription): DisposableLike {
6
- return {...subs, dispose: subs.unsubscribe}
+ return { ...subs, dispose: subs.unsubscribe }
7
}
0 commit comments