mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
10 lines
396 B
TypeScript
10 lines
396 B
TypeScript
import type { OpenCodeEvent } from "@opencode/client"
|
|
import type { SelectedEvent, SubscribeOptions } from "@opencode/client/promise/api"
|
|
|
|
type EventType = Exclude<OpenCodeEvent["type"], "server.connected">
|
|
|
|
export interface EventDomain {
|
|
readonly subscribe: <Type extends EventType = EventType>(
|
|
options?: SubscribeOptions<Type>,
|
|
) => AsyncIterable<SelectedEvent<OpenCodeEvent, Type>>
|
|
}
|