actor-kit
Version:
Actor Kit is a library for running state machines in Cloudflare Workers, leveraging XState for robust state management. It provides a framework for managing the logic, lifecycle, persistence, synchronization, and access control of actors in a distributed
9 lines • 520 B
TypeScript
import type { StoryContext, StoryFn } from "@storybook/react";
import React from "react";
import { createActorKitContext } from "./createActorKitContext";
import type { AnyActorKitStateMachine } from "./types";
export declare const withActorKit: <TMachine extends AnyActorKitStateMachine>({ actorType, context, }: {
actorType: string;
context: ReturnType<typeof createActorKitContext<TMachine>>;
}) => (Story: StoryFn, storyContext: StoryContext) => React.ReactElement;
//# sourceMappingURL=withActorKit.d.ts.map