Currently, the installer.handleCallback method supports the Node specific IncomingMessage and ServerResponse. This is not ideal for apps using Bun and other frameworks like Hono:
Here,
c.req.raw is of type Request and is not assignable to IncomingResponse which is a node:http specific type.
c.Res (type of Response) is not assignable to ServerResponse<IncomingMessage>.
I understand that this is node-slack-sdk and not bun-slack-sdk but this feature request is more about adopting a more compatible standard hence making it more framework/runtime agnostic. Some kind of backward compatibility might be needed.
If this is out of scope, how can I use this package with my above example (Hono and Bun)?
Packages:
Select all that apply:
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
Currently, the
installer.handleCallbackmethod supports the Node specificIncomingMessageandServerResponse. This is not ideal for apps using Bun and other frameworks like Hono:Here,
c.req.rawis of typeRequestand is not assignable toIncomingResponsewhich is anode:httpspecific type.c.Res(type ofResponse) is not assignable toServerResponse<IncomingMessage>.I understand that this is
node-slack-sdkand notbun-slack-sdkbut this feature request is more about adopting a more compatible standard hence making it more framework/runtime agnostic. Some kind of backward compatibility might be needed.If this is out of scope, how can I use this package with my above example (Hono and Bun)?
Packages:
Select all that apply:
@slack/web-api@slack/rtm-api@slack/webhooks@slack/oauth@slack/socket-mode@slack/typesRequirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.