From 7e01e9b751bf50de7f2db56c5cfd9a1ab6513caa Mon Sep 17 00:00:00 2001 From: Tony Xia Date: Wed, 20 Nov 2019 12:37:25 +1100 Subject: [PATCH] Fixed several typos (#1422) --- libraries/botbuilder-azure/src/cosmosDbStorage.ts | 2 +- libraries/botbuilder-core/src/autoSaveStateMiddleware.ts | 2 +- libraries/botbuilder-core/src/showTypingMiddleware.ts | 8 ++++---- libraries/botbuilder-core/src/transcriptLogger.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/botbuilder-azure/src/cosmosDbStorage.ts b/libraries/botbuilder-azure/src/cosmosDbStorage.ts index ada168965e..60ad09f690 100644 --- a/libraries/botbuilder-azure/src/cosmosDbStorage.ts +++ b/libraries/botbuilder-azure/src/cosmosDbStorage.ts @@ -86,7 +86,7 @@ export class CosmosDbStorage implements Storage { private databaseCreationRequestOption: RequestOptions; /** - * Creates a new ConsmosDbStorage instance. + * Creates a new CosmosDbStorage instance. * * @param settings Setting to configure the provider. * @param connectionPolicyConfigurator (Optional) An optional delegate that accepts a ConnectionPolicy for customizing policies. More information at http://azure.github.io/azure-documentdb-node/global.html#ConnectionPolicy diff --git a/libraries/botbuilder-core/src/autoSaveStateMiddleware.ts b/libraries/botbuilder-core/src/autoSaveStateMiddleware.ts index 35ccc11275..87df649a66 100644 --- a/libraries/botbuilder-core/src/autoSaveStateMiddleware.ts +++ b/libraries/botbuilder-core/src/autoSaveStateMiddleware.ts @@ -50,7 +50,7 @@ export class AutoSaveStateMiddleware implements Middleware { */ public botStateSet: BotStateSet; /** - * Creates a new AutoSaveStateiMiddleware instance. + * Creates a new AutoSaveStateMiddleware instance. * @param botStates One or more BotState plugins to automatically save at the end of the turn. */ constructor(...botStates: BotState[]) { diff --git a/libraries/botbuilder-core/src/showTypingMiddleware.ts b/libraries/botbuilder-core/src/showTypingMiddleware.ts index b4a336a84f..178efd7a93 100644 --- a/libraries/botbuilder-core/src/showTypingMiddleware.ts +++ b/libraries/botbuilder-core/src/showTypingMiddleware.ts @@ -10,11 +10,11 @@ import { Middleware } from './middlewareSet'; import { TurnContext } from './turnContext'; /** - * Middleware that will send a typing indicator autmatically for each message. + * Middleware that will send a typing indicator automatically for each message. * * @remarks * When added, this middleware will send typing activities back to the user when a Message activity - * is receieved to let them know that the bot has received the message and is working on the response. + * is received to let them know that the bot has received the message and is working on the response. * You can specify a delay in milliseconds before the first typing activity is sent and then a frequency, * also in milliseconds which determines how often another typing activity is sent. Typing activities * will continue to be sent until your bot sends another message back to the user @@ -67,7 +67,7 @@ export class ShowTypingMiddleware implements Middleware { }; // Sending the Activity directly via the Adapter avoids other middleware and avoids setting the - // responded flag. However this also requires tha tthe conversation reference details are explicitly added. + // responded flag. However this also requires that the conversation reference details are explicitly added. const conversationReference: Partial = TurnContext.getConversationReference(context.activity); typingActivity = TurnContext.applyConversationReference(typingActivity, conversationReference); @@ -109,7 +109,7 @@ export class ShowTypingMiddleware implements Middleware { }; // Sending the Activity directly via the Adapter avoids other middleware and avoids setting the - // responded flag. However this also requires tha tthe conversation reference details are explicitly added. + // responded flag. However this also requires that the conversation reference details are explicitly added. const conversationReference: Partial = TurnContext.getConversationReference(context.activity); typingActivity = TurnContext.applyConversationReference(typingActivity, conversationReference); diff --git a/libraries/botbuilder-core/src/transcriptLogger.ts b/libraries/botbuilder-core/src/transcriptLogger.ts index 2a83b88554..80f0246b14 100644 --- a/libraries/botbuilder-core/src/transcriptLogger.ts +++ b/libraries/botbuilder-core/src/transcriptLogger.ts @@ -208,7 +208,7 @@ export interface TranscriptStore extends TranscriptLogger { * Get activities for a conversation (Aka the transcript) * @param channelId Channel Id. * @param conversationId Conversation Id. - * @param continuationToken Continuatuation token to page through results. + * @param continuationToken Continuation token to page through results. * @param startDate Earliest time to include. */ getTranscriptActivities( @@ -221,7 +221,7 @@ export interface TranscriptStore extends TranscriptLogger { /** * List conversations in the channelId. * @param channelId Channel Id. - * @param continuationToken Continuatuation token to page through results. + * @param continuationToken Continuation token to page through results. */ listTranscripts(channelId: string, continuationToken?: string): Promise>;