node-slack-events-api icon indicating copy to clipboard operation
node-slack-events-api copied to clipboard

TypeScript definitions

Open aoberoi opened this issue 9 years ago • 4 comments

Description

Get some typing built into this package.

My 2c is that we should steer away from over-typing the actual events, but we could document at least a couple of "baseline" properties that all events have.

It shouldn't be too hard to describe the actual API of the module though. We should figure out how much JSDoc will do for us since the typescript language service can read JSDoc comments for types now. At this point I don't think there's any need to port to code to .ts, but open to hear feedback on this.

Requirements

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

aoberoi avatar Mar 28 '17 00:03 aoberoi

Would you be open to a pull request for these?

I've pulled this into a recent typescript project, and would be happy to flesh out my type definitions and share them.

tatethurston avatar Dec 22 '17 00:12 tatethurston

@tatethurston yeah, for sure!

aoberoi avatar Dec 22 '17 05:12 aoberoi

Great, I'll make the PR today and then we can discuss iterations once I have something concrete up.

tatethurston avatar Dec 22 '17 18:12 tatethurston

https://github.com/slackapi/node-slack-sdk/issues/816

shaydewael avatar Jul 16 '19 20:07 shaydewael