@reach/machine
Advanced tools
Comparing version 0.10.5 to 0.11.0
@@ -24,3 +24,7 @@ /// <reference types="react" /> | ||
*/ | ||
export declare function useMachine<TC extends object, TE extends MachineEventWithRefs = MachineEventWithRefs, TS extends Typestate<TC> = any>(initialMachine: StateMachine.Machine<TC, TE, TS>, refs: MachineToReactRefMap<TE>, DEBUG?: boolean): [Omit<StateMachine.State<TC, TE, TS>, "actions">, StateMachine.Service<TC, DistributiveOmit<TE, "refs">>["send"], StateMachine.Service<TC, TE>]; | ||
export declare function useMachine<TC extends object, TE extends MachineEventWithRefs = MachineEventWithRefs, TS extends Typestate<TC> = any>(initialMachine: StateMachine.Machine<TC, TE, TS>, refs: MachineToReactRefMap<TE>, DEBUG?: boolean): [ | ||
Omit<StateMachine.State<TC, TE, TS>, "actions">, | ||
StateMachine.Service<TC, DistributiveOmit<TE, "refs">>["send"], | ||
StateMachine.Service<TC, TE> | ||
]; | ||
/** | ||
@@ -27,0 +31,0 @@ * Converts an object with React refs into an object with the same keys and |
{ | ||
"name": "@reach/machine", | ||
"version": "0.10.5", | ||
"version": "0.11.0", | ||
"description": "State machine utilities for the Reach UI library.", | ||
@@ -13,6 +13,6 @@ "author": "React Training <hello@reacttraining.com>", | ||
"scripts": { | ||
"build": "ts-node ../../scripts/build" | ||
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name" | ||
}, | ||
"dependencies": { | ||
"@reach/utils": "0.10.5", | ||
"@reach/utils": "0.11.0", | ||
"@xstate/fsm": "1.4.0", | ||
@@ -32,3 +32,3 @@ "tslib": "^2.0.0" | ||
], | ||
"gitHead": "86a046f54d53b6420e392b3fa56dd991d9d4e458" | ||
"gitHead": "7eaa66982cd17fb012c13c97e6a1770f75b6ce00" | ||
} |
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
50612
413
+ Added@reach/utils@0.11.0(transitive)
- Removed@reach/utils@0.10.5(transitive)
Updated@reach/utils@0.11.0