From 56d0ede6fee208fe56271e138572bf9e05a55e51 Mon Sep 17 00:00:00 2001 From: Aleksandr Grigorii <42298502+domosedov@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:22:17 +0300 Subject: [PATCH] fix(reset): Event type --- src/reset/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reset/index.ts b/src/reset/index.ts index a81deacd..ab1698af 100644 --- a/src/reset/index.ts +++ b/src/reset/index.ts @@ -1,6 +1,6 @@ import { createEvent } from 'effector'; -import type { Event, Unit, Store, StoreWritable } from 'effector'; +import type { EventCallable, Unit, Store, StoreWritable } from 'effector'; type Params = { clock?: Unit | Array>; @@ -8,7 +8,7 @@ type Params = { }; export function reset(config: Required): void; -export function reset(config: Pick): Event; +export function reset(config: Pick): EventCallable; export function reset({ clock, target }: Params) { const targets = Array.isArray(target) ? target : [target];