Skip to content

Commit

Permalink
Fix status type (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobias authored Dec 15, 2023
1 parent b503166 commit ab98acd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/status/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { createStore, Effect, is, Store } from 'effector';
import { createStore, Effect, is, StoreWritable } from 'effector';

export type EffectState = 'initial' | 'pending' | 'done' | 'fail';

export function status<Params, Done, Fail = Error>(
effect: Effect<Params, Done, Fail>,
): Store<EffectState>;
): StoreWritable<EffectState>;
export function status<Params, Done, Fail = Error>(params: {
effect: Effect<Params, Done, Fail>;
defaultValue?: EffectState;
}): Store<EffectState>;
}): StoreWritable<EffectState>;
export function status<Params, Done, Fail = Error>(
params:
| {
Expand Down

0 comments on commit ab98acd

Please sign in to comment.