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

Commit

Permalink
Merge pull request #1648 from Naktibalda/patch-5
Browse files Browse the repository at this point in the history
Fix signature of spawn method
  • Loading branch information
benbrown authored May 14, 2019
2 parents 9d8a370 + 0178fc2 commit 976d310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/botkit/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ export class Botkit {
* for handling platform-specific events or activities.
* @param config {any} Preferably receives a DialogContext, though can also receive a TurnContext. If excluded, must call `bot.changeContext(reference)` before calling any other method.
*/
public async spawn(config: any): Promise<BotWorker> {
public async spawn(config?: any): Promise<BotWorker> {
if (config instanceof TurnContext) {
config = {
dialogContext: await this.dialogSet.createContext(config as TurnContext),
Expand Down

0 comments on commit 976d310

Please sign in to comment.