Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "patronum", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "☄️ Effector utility library delivering modularity and convenience", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,2 +0,2 @@ | ||
import { Effect, Store, Event } from 'effector'; | ||
import { Effect, Event, Store, StoreWritable } from 'effector'; | ||
type NoInfer<T> = [T][T extends any ? 0 : never]; | ||
@@ -7,3 +7,3 @@ export declare function snapshot<SourceType, TargetType = SourceType>({ source, clock, fn, }: { | ||
fn?(value: SourceType): TargetType; | ||
}): Store<NoInfer<TargetType>>; | ||
}): StoreWritable<NoInfer<TargetType>>; | ||
export {}; |
@@ -1,7 +0,7 @@ | ||
import { Effect, Store } from 'effector'; | ||
import { Effect, StoreWritable } from 'effector'; | ||
export type EffectState = 'initial' | 'pending' | 'done' | 'fail'; | ||
export declare function status<Params, Done, Fail = Error>(effect: Effect<Params, Done, Fail>): Store<EffectState>; | ||
export declare function status<Params, Done, Fail = Error>(effect: Effect<Params, Done, Fail>): StoreWritable<EffectState>; | ||
export declare function status<Params, Done, Fail = Error>(params: { | ||
effect: Effect<Params, Done, Fail>; | ||
defaultValue?: EffectState; | ||
}): Store<EffectState>; | ||
}): StoreWritable<EffectState>; |
184169