diff --git a/src/observable.ts b/src/observable.ts index 9272a3e22..964ca73ce 100644 --- a/src/observable.ts +++ b/src/observable.ts @@ -22,7 +22,7 @@ function createObservable(value: T, makePrimitive: boolean): Observable | const prim = makePrimitive || isActualPrimitive(value); const obs = prim - ? (new (ObservablePrimitiveClass as any)(node) as Observable) + ? (new (ObservablePrimitiveClass as any)(node) as ObservablePrimitive) : (getProxy(node) as Observable); if (valueIsPromise) {