fix: resolve ChatStreamer import path and TypeScript narrowing issue

- Import ChatStreamer from @slack/web-api/dist/chat-stream.js (not re-exported from index)
- Fix TypeScript control flow narrowing for streamSession used in closure
This commit is contained in:
nathandenherder
2026-02-05 18:25:21 -05:00
parent 6945fbf100
commit 06efbd231f
3 changed files with 12943 additions and 3 deletions

View File

@@ -11,7 +11,8 @@
* @see https://docs.slack.dev/reference/methods/chat.stopStream
*/
import type { ChatStreamer, WebClient } from "@slack/web-api";
import type { WebClient } from "@slack/web-api";
import type { ChatStreamer } from "@slack/web-api/dist/chat-stream.js";
import { logVerbose } from "../globals.js";
// ---------------------------------------------------------------------------