refactor: trim twitch helper exports · openclaw/openclaw@13c4066
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import type { TwitchAccountConfig, TwitchChatMessage } from "./types.js";
|
4 | 4 | /** |
5 | 5 | * Result of checking access control for a Twitch message |
6 | 6 | */ |
7 | | -export type TwitchAccessControlResult = { |
| 7 | +type TwitchAccessControlResult = { |
8 | 8 | allowed: boolean; |
9 | 9 | reason?: string; |
10 | 10 | matchKey?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ import { normalizeToken } from "./utils/twitch.js";
|
8 | 8 | /** |
9 | 9 | * Result of probing a Twitch account |
10 | 10 | */ |
11 | | -export type ProbeTwitchResult = BaseProbeResult<string> & { |
| 11 | +type ProbeTwitchResult = BaseProbeResult<string> & { |
12 | 12 | username?: string; |
13 | 13 | elapsedMs: number; |
14 | 14 | connected?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,21 +7,15 @@
|
7 | 7 | |
8 | 8 | import type { |
9 | 9 | ChannelAccountSnapshot, |
10 | | -ChannelCapabilities, |
11 | | -ChannelGatewayContext, |
12 | 10 | ChannelLogSink, |
13 | 11 | ChannelMessageActionAdapter, |
14 | 12 | ChannelMessageActionContext, |
15 | | -ChannelMeta, |
16 | 13 | ChannelOutboundAdapter, |
17 | 14 | ChannelOutboundContext, |
18 | 15 | ChannelPlugin, |
19 | 16 | ChannelResolveKind, |
20 | 17 | ChannelResolveResult, |
21 | | -ChannelStatusAdapter, |
22 | | -OpenClawConfig, |
23 | 18 | OutboundDeliveryResult, |
24 | | -RuntimeEnv, |
25 | 19 | } from "../runtime-api.js"; |
26 | 20 | |
27 | 21 | // ============================================================================ |
@@ -98,20 +92,13 @@ export interface TwitchChatMessage {
|
98 | 92 | // Re-export core types for convenience |
99 | 93 | export type { |
100 | 94 | ChannelAccountSnapshot, |
101 | | -ChannelGatewayContext, |
102 | 95 | ChannelLogSink, |
103 | 96 | ChannelMessageActionAdapter, |
104 | 97 | ChannelMessageActionContext, |
105 | | -ChannelMeta, |
106 | 98 | ChannelOutboundAdapter, |
107 | | -ChannelStatusAdapter, |
108 | | -ChannelCapabilities, |
109 | 99 | ChannelResolveKind, |
110 | 100 | ChannelResolveResult, |
111 | 101 | ChannelPlugin, |
112 | 102 | ChannelOutboundContext, |
113 | 103 | OutboundDeliveryResult, |
114 | 104 | }; |
115 | | - |
116 | | -export type { OpenClawConfig }; |
117 | | -export type { RuntimeEnv }; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。