fix js compile error

This commit is contained in:
pengfei.zhou 2022-09-04 13:33:00 +08:00 committed by osborn
parent 8dd39398b9
commit 390ef52632

View File

@ -48,7 +48,7 @@ export class Observable<M> implements IObservable<M>{
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)