diff --git a/src/commands/doctor-prompter.ts b/src/commands/doctor-prompter.ts index 817830eb04c..f52ad20a114 100644 --- a/src/commands/doctor-prompter.ts +++ b/src/commands/doctor-prompter.ts @@ -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[0]) => Promise; diff --git a/src/commands/doctor-repair-mode.ts b/src/commands/doctor-repair-mode.ts index ed60b39a9be..267da20da8a 100644 --- a/src/commands/doctor-repair-mode.ts +++ b/src/commands/doctor-repair-mode.ts @@ -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; diff --git a/src/commands/doctor.types.ts b/src/commands/doctor.types.ts new file mode 100644 index 00000000000..49541b61dee --- /dev/null +++ b/src/commands/doctor.types.ts @@ -0,0 +1,9 @@ +export type DoctorOptions = { + workspaceSuggestions?: boolean; + yes?: boolean; + nonInteractive?: boolean; + deep?: boolean; + repair?: boolean; + force?: boolean; + generateGatewayToken?: boolean; +};