test(discord): align proxy websocket override helper type

This commit is contained in:
Vincent Koc
2026-07-06 18:40:55 +02:00
parent f859d78b61
commit c3e46e710d

View File

@@ -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,