diff --git a/utils/index.d.ts b/utils/index.d.ts index 8d7e7a3780..545bb6c59e 100644 --- a/utils/index.d.ts +++ b/utils/index.d.ts @@ -1293,7 +1293,7 @@ export declare abstract class AzureWizardPromptStep { * Can be used to optionally configure the wizard context before determining if prompting is required * This method will be called before `shouldPrompt` */ - public configureBeforePrompt?(wizardContext: T): Promise; + public configureBeforePrompt?(wizardContext: T): void | Promise; /** * Return true if this step should prompt based on the current state of the wizardContext diff --git a/utils/src/wizard/AzureWizardPromptStep.ts b/utils/src/wizard/AzureWizardPromptStep.ts index 62012cd1f2..b001423726 100644 --- a/utils/src/wizard/AzureWizardPromptStep.ts +++ b/utils/src/wizard/AzureWizardPromptStep.ts @@ -21,7 +21,7 @@ export abstract class AzureWizardPromptStep impl public getSubWizard?(wizardContext: T): Promise | undefined>; public undo?(wizardContext: T): void; - public configureBeforePrompt?(wizardContext: T): Promise; + public configureBeforePrompt?(wizardContext: T): void | Promise; public abstract shouldPrompt(wizardContext: T): boolean; public reset(): void {