Skip to content

Commit

Permalink
Fix incorrect types of @@trigger in interval
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jan 26, 2024
1 parent 0118292 commit ecf1fda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interval/index.ts
Original file line number Diff line number Diff line change
@@ -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<S extends unknown, F extends unknown>(config: {
timeout: number | Store<number>;
Expand Down Expand Up @@ -146,8 +146,8 @@ function toStoreNumber(value: number | Store<number> | unknown): Store<number> {
*/
export type TriggerProtocol = {
'@@trigger': () => {
setup: Event<void>;
teardown: Event<void>;
setup: EventCallable<void>;
teardown: EventCallable<void>;
fired: Event<unknown> | Event<void>;
};
};

0 comments on commit ecf1fda

Please sign in to comment.