refactor: trim twitch helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 19:23:49 +01:00
parent 420824fccc
commit 13c4066816
3 changed files with 2 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ import type { TwitchAccountConfig, TwitchChatMessage } from "./types.js";
/**
* Result of checking access control for a Twitch message
*/
export type TwitchAccessControlResult = {
type TwitchAccessControlResult = {
allowed: boolean;
reason?: string;
matchKey?: string;

View File

@@ -8,7 +8,7 @@ import { normalizeToken } from "./utils/twitch.js";
/**
* Result of probing a Twitch account
*/
export type ProbeTwitchResult = BaseProbeResult<string> & {
type ProbeTwitchResult = BaseProbeResult<string> & {
username?: string;
elapsedMs: number;
connected?: boolean;

View File

@@ -7,21 +7,15 @@
import type {
ChannelAccountSnapshot,
ChannelCapabilities,
ChannelGatewayContext,
ChannelLogSink,
ChannelMessageActionAdapter,
ChannelMessageActionContext,
ChannelMeta,
ChannelOutboundAdapter,
ChannelOutboundContext,
ChannelPlugin,
ChannelResolveKind,
ChannelResolveResult,
ChannelStatusAdapter,
OpenClawConfig,
OutboundDeliveryResult,
RuntimeEnv,
} from "../runtime-api.js";
// ============================================================================
@@ -98,20 +92,13 @@ export interface TwitchChatMessage {
// Re-export core types for convenience
export type {
ChannelAccountSnapshot,
ChannelGatewayContext,
ChannelLogSink,
ChannelMessageActionAdapter,
ChannelMessageActionContext,
ChannelMeta,
ChannelOutboundAdapter,
ChannelStatusAdapter,
ChannelCapabilities,
ChannelResolveKind,
ChannelResolveResult,
ChannelPlugin,
ChannelOutboundContext,
OutboundDeliveryResult,
};
export type { OpenClawConfig };
export type { RuntimeEnv };