Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usePlugin parameter type declaration #1836

Merged
merged 3 commits into from
Oct 28, 2019

Conversation

etiennellipse
Copy link
Contributor

This is a minor fix to the type declaration.

The current declaration is understood by TypeScript as (botkit: Botkit) => (BotkitPlugin | BotkitPlugin) while the intent is ((botkit: Botkit) => BotkitPlugin) | BotkitPlugin (either a function producing a BotkitPlugin OR a BotkitPlugin.

@benbrown benbrown added this to the 4.6 milestone Oct 24, 2019
@benbrown benbrown merged commit 9af60d7 into howdyai:master Oct 28, 2019
@benbrown
Copy link
Contributor

Thanks for this!

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

Successfully merging this pull request may close these issues.

None yet

2 participants