chore: document slack bolt import interop

This commit is contained in:
Peter Steinberger
2026-01-18 23:55:36 +00:00
parent b5e99dad1f
commit 66b6c9e0e5

View File

@@ -29,6 +29,7 @@ import type { MonitorSlackOpts } from "./types.js";
const slackBoltModule = SlackBolt as typeof import("@slack/bolt") & {
default?: typeof import("@slack/bolt");
};
// Bun allows named imports from CJS; Node ESM doesn't. Use default+fallback for compatibility.
const slackBolt = slackBoltModule.default ?? slackBoltModule;
const { App, HTTPReceiver } = slackBolt;
function parseApiAppIdFromAppToken(raw?: string) {