@koordinates/xstate-tree 4.6.4 → 4.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/xstate-tree.d.ts +1 -1
- package/package.json +1 -1
package/lib/xstate-tree.d.ts
CHANGED
|
@@ -865,7 +865,7 @@ export declare type ViewProps<TSelectors, TActions, TSlots extends readonly Slot
|
|
|
865
865
|
* @param view - the React view you want to invoke in an xstate machine
|
|
866
866
|
* @returns The view wrapped into an xstate-tree machine, ready to be invoked by other xstate machines or used with `buildRootComponent`
|
|
867
867
|
*/
|
|
868
|
-
export declare function viewToMachine(view: () => JSX.Element): AnyXstateTreeMachine;
|
|
868
|
+
export declare function viewToMachine(view: (args?: any) => JSX.Element | null): AnyXstateTreeMachine;
|
|
869
869
|
|
|
870
870
|
/**
|
|
871
871
|
* @public
|
package/package.json
CHANGED