fix(commands): split doctor prompt option types

This commit is contained in:
Vincent Koc
2026-04-09 02:07:49 +01:00
parent d9a3ecd109
commit b73a18dd27
3 changed files with 12 additions and 10 deletions

View File

@@ -6,17 +6,10 @@ import {
shouldAutoApproveDoctorFix,
type DoctorRepairMode,
} from "./doctor-repair-mode.js";
import type { DoctorOptions } from "./doctor.types.js";
import { guardCancel } from "./onboard-helpers.js";
export type DoctorOptions = {
workspaceSuggestions?: boolean;
yes?: boolean;
nonInteractive?: boolean;
deep?: boolean;
repair?: boolean;
force?: boolean;
generateGatewayToken?: boolean;
};
export type { DoctorOptions } from "./doctor.types.js";
export type DoctorPrompter = {
confirm: (params: Parameters<typeof confirm>[0]) => Promise<boolean>;

View File

@@ -1,5 +1,5 @@
import { isTruthyEnvValue } from "../infra/env.js";
import type { DoctorOptions } from "./doctor-prompter.js";
import type { DoctorOptions } from "./doctor.types.js";
export type DoctorRepairMode = {
shouldRepair: boolean;

View File

@@ -0,0 +1,9 @@
export type DoctorOptions = {
workspaceSuggestions?: boolean;
yes?: boolean;
nonInteractive?: boolean;
deep?: boolean;
repair?: boolean;
force?: boolean;
generateGatewayToken?: boolean;
};