Skip to content

Commit

Permalink
fix: mobx6 removed IDerivation type (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamind authored Apr 21, 2023
1 parent a1df68a commit dde88c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 2 additions & 9 deletions src/lib/mixin-custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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;
}

/**
Expand Down

0 comments on commit dde88c4

Please sign in to comment.