From e1cd73e4de77bcd0204abace491da80326893b34 Mon Sep 17 00:00:00 2001 From: winewill Date: Wed, 4 Nov 2026 14:35:43 +0800 Subject: [PATCH] fix(desktop): type omitted rollout percentage explicitly --- apps/desktop/scripts/desktop-publish-record.ts | 4 ++-- apps/desktop/scripts/desktop-upload-plan.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/scripts/desktop-publish-record.ts b/apps/desktop/scripts/desktop-publish-record.ts index 1441781a5f..7ef28cac0c 100644 --- a/apps/desktop/scripts/desktop-publish-record.ts +++ b/apps/desktop/scripts/desktop-publish-record.ts @@ -40,7 +40,7 @@ export interface DesktopPublicationRecord { */ export async function createDesktopPublicationRecord( root: string, - identity: { repository: string; runId: string; attempt: string; actor: string; destination: string; operation: 'publish' | 'rollback'; reason: string; stagingPercentage?: number }, + identity: { repository: string; runId: string; attempt: string; actor: string; destination: string; operation: 'publish' | 'rollback'; reason: string; stagingPercentage?: number | undefined }, ): Promise { await mkdir(root, { recursive: true, mode: 0o700 }) const staging = await mkdtemp(join(root, '.initializing-')) @@ -78,7 +78,7 @@ export async function wasDesktopAttemptPublished(root: string, expected: { runId: string attempt: string destination: string - stagingPercentage?: number + stagingPercentage?: number | undefined }): Promise { let entries try { entries = await readdir(root, { withFileTypes: true }) } catch (error) { diff --git a/apps/desktop/scripts/desktop-upload-plan.ts b/apps/desktop/scripts/desktop-upload-plan.ts index f07f3e5912..6a9cfd1183 100644 --- a/apps/desktop/scripts/desktop-upload-plan.ts +++ b/apps/desktop/scripts/desktop-upload-plan.ts @@ -62,7 +62,7 @@ export interface DesktopUploadPlanOptions { /** Publish only the installer at its fixed download URL, replacing the previous object. */ readonly latest?: boolean /** Percentage of installations eligible for this publication; absent preserves packaged metadata. */ - readonly stagingPercentage?: number + readonly stagingPercentage?: number | undefined readonly environment?: NodeJS.ProcessEnv readonly repositoryRoot?: string readonly appRoot?: string