You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gterras Hello, thanks for mentioning an example I created before 😄
When you use TypeScript, you don't need to do anything further. You can go with common TypeScript project settings. Then, just adding @slack/bolt as a dependency works for you.
Probably, you're looking for ways to have much clearer types for arguments of handlers. Try having more constraints introduced by #349 for it. It helps yo make the type more specific. If you want to determine the types much more specifically (say, you want BlockStaticSelectAction rather than generic BlockAction), you can freely cast the type in your code upon certain assumptions.
Also, I guess you're already aware of this but Bolt and its underlying node-slack-sdk don't provide type definitions for API method (e.g., chat.postMessage) responses yet. If you need types for those, please define your own ones or copy my personal experiments.
Description
Hi,
Is there an example out there on how to properly use Bolt with strict Typescript ?
The README says
but the anchor link it refers to does not exist.
I know this example https://github.com/seratch/slack-app-examples/tree/master/reacjilator-bolt-typescript but it misses a full integration.
I'm trying to do something like this but I'm really not sure it is the proper way :
Thanks!
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: