Skip to content

Commit

Permalink
Add void return
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Aug 2, 2024
1 parent a76bb12 commit af1ed28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ export declare abstract class AzureWizardPromptStep<T extends IActionContext> {
* 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<void>;
public configureBeforePrompt?(wizardContext: T): void | Promise<void>;

/**
* Return true if this step should prompt based on the current state of the wizardContext
Expand Down
2 changes: 1 addition & 1 deletion utils/src/wizard/AzureWizardPromptStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export abstract class AzureWizardPromptStep<T extends types.IActionContext> impl
public getSubWizard?(wizardContext: T): Promise<types.IWizardOptions<T> | undefined>;
public undo?(wizardContext: T): void;

public configureBeforePrompt?(wizardContext: T): Promise<void>;
public configureBeforePrompt?(wizardContext: T): void | Promise<void>;
public abstract shouldPrompt(wizardContext: T): boolean;

public reset(): void {
Expand Down

0 comments on commit af1ed28

Please sign in to comment.