Skip to content

Commit

Permalink
fix: [#4204] Fix remaining eslint warnings - Rest of botbuilder-dialo…
Browse files Browse the repository at this point in the history
…gs libraries - adaptive runtime (#4239)

* Warnings fixed. Missing documentation.

* Minor documentation changes

Co-authored-by: Emiliano Quiroga <emiliano.quiroga@7-11.com>
  • Loading branch information
sw-joelmut and Emiliano Quiroga authored Jul 13, 2022
1 parent bc668f6 commit a8d076e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ import { Configuration } from './configuration';
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
import { ok } from 'assert';

/**
* Class which gives access to content resources by specifying configuration and declarativeTypes.
*/
export class ConfigurationResourceExporer extends ResourceExplorer {
/**
* @param configuration Additional configuration methods.
* @param declarativeTypes Registered declarative types.
*/
constructor(configuration: Configuration, declarativeTypes: ComponentDeclarativeTypes[]) {
super({ declarativeTypes });

Expand Down
15 changes: 15 additions & 0 deletions libraries/botbuilder-dialogs-adaptive-runtime/src/coreBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,22 @@ import {
useTelemetry,
} from 'botbuilder-dialogs-adaptive';

/**
* Implements an instance of CoreBot.
*/
export class CoreBot extends ActivityHandler {
/**
* @param resourceExplorer Services to access resources.
* @param userState Stored user state.
* @param conversationState Stored conversation state.
* @param botFrameworkAuthentication Cloud environment to authenticate Bot Framework Protocol network calls within this environment.
* @param skillConversationIdFactory Methods to create unique conversation IDs for skill conversations.
* @param botTelemetryClient Bot client to telemetry.
* @param defaultLocale The default locale used to determine language-specific behavior.
* @param defaultRootDialog Default bot root dialog.
* @param memoryScopes Named root-level objects, which can exist in the dialog context or outside the turn state.
* @param pathResolvers Shortcut behavior for transform paths.
*/
constructor(
resourceExplorer: ResourceExplorer,
userState: UserState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
import { BotFrameworkAuthentication } from 'botframework-connector';
import { CloudAdapter, ConversationState, UserState, useBotState } from 'botbuilder';

/**
* An adapter that implements the Core Bot and can be hosted in different cloud environments both public and private.
*/
export class CoreBotAdapter extends CloudAdapter {
/**
* @param botFrameworkAuthentication BotFrameworkAuthentication](xref:botframework-connector.BotFrameworkAuthentication) instance.
* @param conversationState State management object for conversation state.
* @param userState Stored user state.
*/
constructor(
botFrameworkAuthentication: BotFrameworkAuthentication,
private readonly conversationState: ConversationState,
Expand Down

0 comments on commit a8d076e

Please sign in to comment.