Spaces:
Runtime error
Runtime error
Download packages/plugin/src/v2/effect/event.ts from yoursravan11/ALEX: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/yoursravan11/ALEX/resolve/main/packages/plugin/src/v2/effect/event.ts
- Command line
-
hf download hf://spaces/yoursravan11/ALEX/packages/plugin/src/v2/effect/event.ts
-
curl -L -o event.ts https://huggingface.co/spaces/yoursravan11/ALEX/resolve/main/packages/plugin/src/v2/effect/event.ts
287 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]> | |
| } | |