Skip to content

Commit 6bc612d

Browse files
Fixes return types
1 parent 1c05ff7 commit 6bc612d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/plus/launchpad/launchpad.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ export class LaunchpadCommand extends QuickCommand<State> {
976976
private async *confirmLocalIntegrationConnectStep(
977977
state: StepState<State>,
978978
context: Context,
979-
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void }> {
979+
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void | undefined }> {
980980
const hasConnectedIntegration = some(context.connectedIntegrations.values(), c => c);
981981
const confirmations: (QuickPickItemOfT<IntegrationId> | DirectiveQuickPickItem)[] = !hasConnectedIntegration
982982
? [
@@ -1048,7 +1048,7 @@ export class LaunchpadCommand extends QuickCommand<State> {
10481048
private async *confirmCloudIntegrationsConnectStep(
10491049
state: StepState<State>,
10501050
context: Context,
1051-
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void }> {
1051+
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void | undefined }> {
10521052
const hasConnectedIntegration = some(context.connectedIntegrations.values(), c => c);
10531053
const step = this.createConfirmStep(
10541054
`${this.title} \u00a0\u2022\u00a0 Connect an ${hasConnectedIntegration ? 'Additional ' : ''}Integration`,

src/plus/startWork/startWork.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class StartWorkCommand extends QuickCommand<State> {
249249
private async *confirmLocalIntegrationConnectStep(
250250
state: StepState<State>,
251251
context: Context,
252-
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void }> {
252+
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void | undefined }> {
253253
context.result = undefined;
254254
const confirmations: (QuickPickItemOfT<IntegrationId> | DirectiveQuickPickItem)[] = [];
255255

@@ -310,7 +310,7 @@ export class StartWorkCommand extends QuickCommand<State> {
310310
state: StepState<State>,
311311
context: Context,
312312
overrideStep?: QuickPickStep<QuickPickItemOfT<StartWorkItem>>,
313-
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void }> {
313+
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void | undefined }> {
314314
// TODO: This step is almost an exact copy of the similar one from launchpad.ts. Do we want to do anything about it? Maybe to move it to an util function with ability to parameterize labels?
315315
const hasConnectedIntegration = some(context.connectedIntegrations.values(), c => c);
316316
context.result = undefined;

0 commit comments

Comments
 (0)