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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants