From 9aeb03d38c6a115cf7bb0a9210fcbf9001feb917 Mon Sep 17 00:00:00 2001 From: Jakub Kupsik Date: Fri, 1 Dec 2023 08:25:00 -0800 Subject: [PATCH] ReactionSpec back to interface --- core/HoistBase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/HoistBase.ts b/core/HoistBase.ts index 663dc0cd88..3fa6352906 100644 --- a/core/HoistBase.ts +++ b/core/HoistBase.ts @@ -293,7 +293,7 @@ export abstract class HoistBase { /** * Object containing options accepted by MobX 'reaction' API as well as arguments below. */ -export type ReactionSpec = Omit, 'equals'> & { +export interface ReactionSpec extends Omit, 'equals'> { /** * Function returning data to observe - first arg to the underlying reaction() call. * Specify this or `when`. @@ -314,7 +314,7 @@ export type ReactionSpec = Omit, 'equals'> & { /** Specify a default from {@link comparer} or a custom comparer function. */ equals?: keyof typeof comparer | IEqualsComparer; -}; +} /** * Object containing options accepted by MobX 'autorun' API as well as arguments below.