Skip to content

Commit

Permalink
ReactionSpec back to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jskupsik committed Dec 1, 2023
1 parent ddecf61 commit 9aeb03d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/HoistBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export abstract class HoistBase {
/**
* Object containing options accepted by MobX 'reaction' API as well as arguments below.
*/
export type ReactionSpec<T = any> = Omit<IReactionOptions<T, any>, 'equals'> & {
export interface ReactionSpec<T = any> extends Omit<IReactionOptions<T, any>, 'equals'> {
/**
* Function returning data to observe - first arg to the underlying reaction() call.
* Specify this or `when`.
Expand All @@ -314,7 +314,7 @@ export type ReactionSpec<T = any> = Omit<IReactionOptions<T, any>, 'equals'> & {

/** Specify a default from {@link comparer} or a custom comparer function. */
equals?: keyof typeof comparer | IEqualsComparer<T>;
};
}

/**
* Object containing options accepted by MobX 'autorun' API as well as arguments below.
Expand Down

0 comments on commit 9aeb03d

Please sign in to comment.