diff --git a/libraries/botbuilder-dialogs/src/waterfallDialog.ts b/libraries/botbuilder-dialogs/src/waterfallDialog.ts index 91233df075..8aaed77529 100644 --- a/libraries/botbuilder-dialogs/src/waterfallDialog.ts +++ b/libraries/botbuilder-dialogs/src/waterfallDialog.ts @@ -236,8 +236,7 @@ export class WaterfallDialog extends Dialog { * @param instance The instance of the current dialog. * @param reason The reason the dialog is ending. */ - public async endDialog(context: TurnContext, instance: DialogInstance, reason: DialogReason) { - + public async endDialog(context: TurnContext, instance: DialogInstance, reason: DialogReason): Promise { const state: WaterfallDialogState = instance.state as WaterfallDialogState; const instanceId = state.values['instanceId']; if (reason === DialogReason.endCalled) { @@ -256,7 +255,7 @@ export class WaterfallDialog extends Dialog { } } - private waterfallStepName(index) { + private waterfallStepName(index: number): string { // Log Waterfall Step event. Each event has a distinct name to hook up // to the Application Insights funnel. var stepName = ''; @@ -288,8 +287,8 @@ interface WaterfallDialogState { * instances of a given waterfall dialog. * Source: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript */ -function generate_guid() { - function s4() { +function generate_guid(): string { + function s4(): string { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1);