Skip to content

Commit 587d936

Browse files
authored
Merge pull request #335 from domosedov/patch-1
fix(reset): Event type
2 parents 176cf5f + f43c50a commit 587d936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reset/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { createEvent } from 'effector';
22

3-
import type { Event, Unit, Store, StoreWritable } from 'effector';
3+
import type { EventCallable, Unit, Store, StoreWritable } from 'effector';
44

55
type Params = {
66
clock?: Unit<any> | Array<Unit<any>>;
77
target: StoreWritable<any> | Array<StoreWritable<any>>;
88
};
99

1010
export function reset(config: Required<Params>): void;
11-
export function reset(config: Pick<Params, 'target'>): Event<void>;
11+
export function reset(config: Pick<Params, 'target'>): EventCallable<void>;
1212

1313
export function reset({ clock, target }: Params) {
1414
const targets = Array.isArray(target) ? target : [target];

0 commit comments

Comments
 (0)