fix(desktop): type omitted rollout percentage explicitly

This commit is contained in:
winewill
2026-11-04 14:35:43 +08:00
parent 001bc22978
commit e1cd73e4de
2 changed files with 3 additions and 3 deletions
@@ -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<DesktopPublicationRecord> {
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<boolean> {
let entries
try { entries = await readdir(root, { withFileTypes: true }) } catch (error) {
+1 -1
View File
@@ -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