mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 21:53:54 +00:00
test(discord): align proxy websocket override helper type
This commit is contained in:
@@ -230,7 +230,9 @@ describe("createDiscordGatewayPlugin", () => {
|
||||
};
|
||||
}
|
||||
|
||||
function createProxyTestingOverrides() {
|
||||
function createProxyTestingOverrides(): NonNullable<
|
||||
Parameters<typeof createDiscordGatewayPlugin>[0]["testing"]
|
||||
> {
|
||||
return {
|
||||
createProxyAgent: (proxyUrl: string) =>
|
||||
new HttpsProxyAgent(proxyUrl) as unknown as import("node:http").Agent,
|
||||
|
||||
Reference in New Issue
Block a user