From 390ef52632bacb5c9b465a2f3048cc499fb39599 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sun, 4 Sep 2022 13:33:00 +0800 Subject: [PATCH] fix js compile error --- doric-js/src/pattern/provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-js/src/pattern/provider.ts b/doric-js/src/pattern/provider.ts index 23e945d3..58c6e261 100644 --- a/doric-js/src/pattern/provider.ts +++ b/doric-js/src/pattern/provider.ts @@ -48,7 +48,7 @@ export class Observable implements IObservable{ const oldV = this.provider.acquire(this.clz) const newV = updater(oldV) if (newV !== undefined) { - this.provider.provide(newV) + this.provider.provide(newV as Object) } for (let observer of this.observers) { observer(newV)