fn-machine
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "fn-machine", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "a tiny functional state machine", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -9,3 +9,3 @@ /** @typedef {import('./fn-state').CurrentState} CurrentState */ | ||
* @param {function(CurrentState)=} changeCb | ||
* @return {function(string, Object?):CurrentState} | ||
* @return {function(string, Object=):CurrentState?} | ||
*/ | ||
@@ -25,3 +25,3 @@ export default function machine(states: { | ||
context?: any; | ||
}) => any): (arg0: string, arg1: any) => { | ||
}) => any): (arg0: string, arg1?: any) => { | ||
state: string; | ||
@@ -28,0 +28,0 @@ context?: any; |
@@ -10,3 +10,3 @@ /** @typedef {import('./fn-state').CurrentState} CurrentState */ | ||
* @param {function(CurrentState)=} changeCb | ||
* @return {function(string, Object?):CurrentState} | ||
* @return {function(string, Object=):CurrentState?} | ||
*/ | ||
@@ -13,0 +13,0 @@ export default function machine(states, initialState, initialContext, changeCb = function(state){}) { |
6099