From 05b73f6dedf00c5378dd6bcf7a71cd26d847458e Mon Sep 17 00:00:00 2001 From: TinyMan Date: Mon, 20 Aug 2018 18:46:11 +0200 Subject: [PATCH] fix(core): temporary workaround for Microsoft/TypeScript#25769 --- package.json | 2 ++ packages/core/src/patch/index.ts | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9827fee..d0672f2 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "lint": "tslint --project tsconfig.json **/*.ts --exclude node_modules/**/*", "watch:extension": "lerna run start --scope @rxjs-inspector/extension --stream", "build:extension": "lerna run build --scope @rxjs-inspector/extension", + "build:core": "lerna run build --scope @rxjs-inspector/core", + "build:devtools": "lerna run build --scope @rxjs-inspector/devtools", "build:panel": "lerna run build --scope @rxjs-inspector/panel --include-filtered-dependencies", "bw:panel": "ng build panel --configuration watch", "watch:panel": "ng serve panel", diff --git a/packages/core/src/patch/index.ts b/packages/core/src/patch/index.ts index 6e68119..2b606f9 100644 --- a/packages/core/src/patch/index.ts +++ b/packages/core/src/patch/index.ts @@ -1,11 +1,13 @@ -import { Observable } from 'rxjs'; +import { Observable, ConnectableObservable } from 'rxjs'; import { lift } from './lift'; import { patch, Notif, NotificationKind } from './subscribe'; export { Notif, NotificationKind }; -export function setup() { +export function setup(): { + notifications$: ConnectableObservable; +} { lift(Observable.prototype, {}); return { notifications$: patch(Observable.prototype),