little-state-machine
Advanced tools
Comparing version 4.1.0-beta.2 to 4.1.0-beta.3
@@ -5,5 +5,8 @@ import * as React from 'react'; | ||
export declare type AnyCallback = (state: GlobalState, payload: any) => GlobalState; | ||
export declare type ActionOptions = { | ||
persist: boolean; | ||
}; | ||
export declare type AnyActions<TCallback> = Record<string, TCallback>; | ||
export declare type ActionsOutput<TCallback extends AnyCallback, TActions extends AnyActions<TCallback>> = { | ||
[K in keyof TActions]: (payload: Parameters<TActions[K]>[1]) => void; | ||
[K in keyof TActions]: (payload: Parameters<TActions[K]>[1], options: ActionOptions) => void; | ||
}; | ||
@@ -10,0 +13,0 @@ export declare type StateMachineContextValue = { |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "4.1.0-beta.2", | ||
"version": "4.1.0-beta.3", | ||
"main": "dist/little-state-machine.js", | ||
@@ -11,0 +11,0 @@ "module": "dist/little-state-machine.es.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
41954
89
284177