chore: Fix types in tests 23/N.

This commit is contained in:
cpojer
2026-02-17 12:23:01 +09:00
parent 8d6e345338
commit cf6cdc74d0
13 changed files with 166 additions and 116 deletions

View File

@@ -6,12 +6,18 @@ import type {
} from "../channels/plugins/types.js";
import type { PluginRegistry } from "../plugins/registry.js";
export const createTestRegistry = (channels: PluginRegistry["channels"] = []): PluginRegistry => ({
type TestChannelRegistration = {
pluginId: string;
plugin: unknown;
source: string;
};
export const createTestRegistry = (channels: TestChannelRegistration[] = []): PluginRegistry => ({
plugins: [],
tools: [],
hooks: [],
typedHooks: [],
channels,
channels: channels as unknown as PluginRegistry["channels"],
providers: [],
gatewayHandlers: {},
httpHandlers: [],