fix: widen savePending type in useCommitFlow to accept Promise<boolean>

Pre-existing type mismatch where useEditorSave returns Promise<boolean>
but useCommitFlow expected Promise<void>. The return value is unused.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-02-24 12:19:09 +01:00
parent ec06d5ad7e
commit c3b894ee1f

View File

@@ -1,7 +1,7 @@
import { useCallback, useState } from 'react'
interface CommitFlowConfig {
savePending: () => Promise<void>
savePending: () => Promise<void | boolean>
loadModifiedFiles: () => Promise<void>
commitAndPush: (message: string) => Promise<string>
setToastMessage: (msg: string | null) => void