Chenloong999's picture
backup 2026-08-23T20:24:25.191693
e5de7b5 verified
Raw History Blame Contribute Delete
294 Bytes
import type { Event as SDKEvent } from "@opencode-ai/sdk/v2/types";
import type { Stream } from "effect";
export type EventMap = {
[Item in SDKEvent as Item["type"]]: Item;
};
export interface Event {
subscribe<Type extends keyof EventMap>(type: Type): Stream.Stream<EventMap[Type]>;
}