Comparing version 0.11.3 to 0.12.0
@@ -1,16 +0,8 @@ | ||
import { Store, Event, Effect } from 'effector'; | ||
import { Unit, Store } from 'effector'; | ||
type Source<T> = Store<T> | Event<T> | Effect<T, any, any>; | ||
export function condition<State, Result extends State>(options: { | ||
source: Source<State>; | ||
if: (payload: State) => payload is Result; | ||
then?: Source<Result>; | ||
else?: Source<State>; | ||
}); | ||
export function condition<State>(options: { | ||
source: Source<State>; | ||
source: Unit<State>; | ||
if: Store<boolean> | ((payload: State) => boolean) | State; | ||
then?: Source<State>; | ||
else?: Source<State>; | ||
}); | ||
then?: Unit<State>; | ||
else?: Unit<State>; | ||
}): void; |
{ | ||
"name": "patronum", | ||
"version": "0.11.3", | ||
"version": "0.12.0", | ||
"description": "☄️ Effector utility library delivering modularity and convenience", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29524
258