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

Fix signature of spawn method #1648

Merged
merged 3 commits into from
May 14, 2019
Merged

Fix signature of spawn method #1648

merged 3 commits into from
May 14, 2019

Conversation

Naktibalda
Copy link
Contributor

According to documentation at https://github.com/howdyai/botkit/blob/master/packages/docs/core.md#sending-alerts-and-scheduled-messages, config parameter of spawn() is optional.

However I got an error when compiling my bot:

src/actions.ts:117:42 - error TS2554: Expected 1 arguments, but got 0.
117                     const newBot = await bot.controller.spawn();
                                             ~~~~~~~~~~~~~~~~~~~~~~
  node_modules/botkit/lib/core.d.ts:502:11
    502     spawn(config: any): Promise<BotWorker>;
                  ~~~~~~~~~~~
    An argument for 'config' was not provided.

@benbrown benbrown added the 4.0.2 this issue will be addressed in 4.0.2 label May 9, 2019
@benbrown benbrown added this to the 4.0.2 milestone May 9, 2019
@benbrown benbrown merged commit 976d310 into howdyai:master May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.0.2 this issue will be addressed in 4.0.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants