Eric Bower
·
2025-06-06
context.ts
1import { type Channel, createChannel, createContext } from "effection";
2import type { AnyState } from "../types.js";
3import type { FxStore } from "./types.js";
4
5export const StoreUpdateContext = createContext<Channel<void, void>>(
6 "starfx:store:update",
7 createChannel<void, void>(),
8);
9export const StoreContext = createContext<FxStore<AnyState>>("starfx:store");