chore: document slack bolt import interop
parent
b5e99dad1f
commit
66b6c9e0e5
|
|
@ -29,6 +29,7 @@ import type { MonitorSlackOpts } from "./types.js";
|
||||||
const slackBoltModule = SlackBolt as typeof import("@slack/bolt") & {
|
const slackBoltModule = SlackBolt as typeof import("@slack/bolt") & {
|
||||||
default?: 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 slackBolt = slackBoltModule.default ?? slackBoltModule;
|
||||||
const { App, HTTPReceiver } = slackBolt;
|
const { App, HTTPReceiver } = slackBolt;
|
||||||
function parseApiAppIdFromAppToken(raw?: string) {
|
function parseApiAppIdFromAppToken(raw?: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue