@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20220713111527 to 0.0.0-dev-20220713130021
@@ -755,2 +755,5 @@ "use strict"; | ||
} | ||
getState() { | ||
return (0, import_json.klona)(this.stateSnapshot); | ||
} | ||
get contextSnapshot() { | ||
@@ -757,0 +760,0 @@ return this.stateSnapshot.context; |
@@ -29,2 +29,3 @@ import { Dict, MachineStatus, MachineType, StateMachine as S, Writable } from "./types"; | ||
private get stateSnapshot(); | ||
getState(): S.State<TContext, TState, TEvent>; | ||
private get contextSnapshot(); | ||
@@ -31,0 +32,0 @@ start: (init?: S.StateInit<TContext, TState>) => this; |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20220713111527", | ||
"version": "0.0.0-dev-20220713130021", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
91732
2095