Skip to content

Commit e8e8124

Browse files
committed
FIx observable checking
Fixes #214
1 parent 47a5099 commit e8e8124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
"jsdom": "^24.1.0",
6363
"rxjs": "^7.8.1",
6464
"tempy": "^3.1.0",
65-
"tsimp": "^2.0.11",
66-
"typescript": "^5.5.3",
65+
"tsimp": "2.0.11",
66+
"typescript": "5.5.3",
6767
"xo": "^0.58.0",
6868
"zen-observable": "^0.10.0"
6969
},

source/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ export function isObservable(value: unknown): value is ObservableLike {
629629
}
630630

631631
// eslint-disable-next-line no-use-extend-native/no-use-extend-native, @typescript-eslint/no-unsafe-call
632-
if (value === (value as any)[Symbol.observable]?.()) {
632+
if (Symbol.observable !== undefined && value === (value as any)[Symbol.observable]?.()) {
633633
return true;
634634
}
635635

0 commit comments

Comments
 (0)