mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:40:44 +00:00
test(ui): tighten app tool stream event helper type
This commit is contained in:
@@ -2,7 +2,7 @@ import { beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import { handleAgentEvent, type FallbackStatus, type ToolStreamEntry } from "./app-tool-stream.ts";
|
||||
|
||||
type ToolStreamHost = Parameters<typeof handleAgentEvent>[0];
|
||||
type AgentEvent = Parameters<typeof handleAgentEvent>[1];
|
||||
type AgentEvent = NonNullable<Parameters<typeof handleAgentEvent>[1]>;
|
||||
type MutableHost = ToolStreamHost & {
|
||||
compactionStatus?: unknown;
|
||||
compactionClearTimer?: number | null;
|
||||
|
||||
Reference in New Issue
Block a user