UNPKG

@assistant-ui/react

Version:

React components for AI chat.

10 lines 406 B
import { Unsubscribe } from "../../types"; export type Subscribable = { subscribe: (callback: () => void) => Unsubscribe; }; export type SubscribableWithState<TState, TPath> = Subscribable & { path: TPath; getState: () => TState; }; export type NestedSubscribable<TState extends Subscribable | undefined, TPath> = SubscribableWithState<TState, TPath>; //# sourceMappingURL=Subscribable.d.ts.map