From dde88c430845af83d5eddc23ab85686a10e46cae Mon Sep 17 00:00:00 2001 From: Ben Delarre Date: Fri, 21 Apr 2023 09:35:54 -0700 Subject: [PATCH] fix: mobx6 removed IDerivation type (#165) --- package.json | 2 +- src/lib/mixin-custom.ts | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c5fcd2f..892210f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/lit-mobx", - "version": "2.1.0", + "version": "2.2.0", "description": "Integrating mobx with lit-element!", "license": "Apache-2.0", "repository": "https://github.com/adobe/lit-mobx", diff --git a/src/lib/mixin-custom.ts b/src/lib/mixin-custom.ts index 10b1433..92aba66 100644 --- a/src/lib/mixin-custom.ts +++ b/src/lib/mixin-custom.ts @@ -11,7 +11,7 @@ governing permissions and limitations under the License. */ import { ReactiveElement, PropertyValues } from 'lit'; -import type { IDerivation, Reaction } from 'mobx'; +import type { Reaction } from 'mobx'; const reaction = Symbol('LitMobxRenderReaction'); const cachedRequestUpdate = Symbol('LitMobxRequestUpdate'); @@ -21,14 +21,7 @@ export type ReactiveElementConstructor = new ( ) => ReactiveElement; export interface ReactionConstructor { - new ( - name: string, - onInvalidate: () => void, - errorHandler?: - | ((error: any, derivation: IDerivation) => void) - | undefined, - requiresObservable?: boolean - ): Reaction; + new (...args: any[]): Reaction; } /**