fix: dedupe probe/token base types (#16986) (thanks @iyoda)

This commit is contained in:
Shadow
2026-02-15 11:34:21 -06:00
committed by Shadow
parent a0e763168f
commit c6b3736fe7
23 changed files with 101 additions and 55 deletions

View File

@@ -1,3 +1,4 @@
import type { BaseProbeResult } from "openclaw/plugin-sdk";
import { StaticAuthProvider } from "@twurple/auth";
import { ChatClient } from "@twurple/chat";
import type { TwitchAccountConfig } from "./types.js";
@@ -6,9 +7,7 @@ import { normalizeToken } from "./utils/twitch.js";
/**
* Result of probing a Twitch account
*/
export type ProbeTwitchResult = {
ok: boolean;
error?: string;
export type ProbeTwitchResult = BaseProbeResult<string> & {
username?: string;
elapsedMs: number;
connected?: boolean;