Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Missing Typescript Types for Slack Interactive Messages #1317

Closed
jaalger opened this issue Apr 11, 2018 · 0 comments · Fixed by #1318
Closed

Missing Typescript Types for Slack Interactive Messages #1317

jaalger opened this issue Apr 11, 2018 · 0 comments · Fixed by #1318

Comments

@jaalger
Copy link
Contributor

jaalger commented Apr 11, 2018

Botkit Version: 0.6.13

Building Typescript Slack Bot using Botkit and ran into issues regarding type checking:

SlackAttachment interface missing the following:

  • actions
  • attachment_type
  • callback_id

Message interface missing the following:

  • replace_original
  • response_type

Type check errors all follow a similar error message:

Object literal may only specify known properties, and 'callback_id' does not exist in type 'SlackAttachment'.

Was able to workaround the issue with either of the two workarounds below:

  1. Added missing types locally to https://github.com/howdyai/botkit/blob/master/lib/Botkit.d.ts
  2. Changed the ts file to a js file and updated my compiler to allowJs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants