From ecf1fdadbe1259c782250e2566d680a42fe696c3 Mon Sep 17 00:00:00 2001 From: Igor Kamyshev Date: Fri, 26 Jan 2024 16:00:48 +0100 Subject: [PATCH] Fix incorrect types of @@trigger in interval --- src/interval/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interval/index.ts b/src/interval/index.ts index 4964cc5a..b98eaadf 100644 --- a/src/interval/index.ts +++ b/src/interval/index.ts @@ -1,4 +1,4 @@ -import { Event, Store, createEvent, createStore, sample, attach, is } from 'effector'; +import { Event, EventCallable, Store, createEvent, createStore, sample, attach, is } from 'effector'; export function interval(config: { timeout: number | Store; @@ -146,8 +146,8 @@ function toStoreNumber(value: number | Store | unknown): Store { */ export type TriggerProtocol = { '@@trigger': () => { - setup: Event; - teardown: Event; + setup: EventCallable; + teardown: EventCallable; fired: Event | Event; }; };