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

Missing methods in Conversation interface definition #1620

Closed
luaneyed opened this issue Apr 12, 2019 · 0 comments
Closed

Missing methods in Conversation interface definition #1620

luaneyed opened this issue Apr 12, 2019 · 0 comments

Comments

@luaneyed
Copy link
Contributor

I found that Botkit.d.ts does not define some methods of Conversation.
Is the reason the missing methods are not defined is they are private?

I needed successful method and it is not in the definition file, so I wrote code below in my project.

declare module 'botkit' {
  interface Conversation<M extends Message> {
    successful(): boolean;
  }
}

I'd like to add successful to definition file if there is no intentional reason that omitted it!
If then, I wouldn't have to write my own method definition.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant