From c3b894ee1f7388dc61ec2bea39a5e627e4eb2df5 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Tue, 24 Feb 2026 12:19:09 +0100 Subject: [PATCH] fix: widen savePending type in useCommitFlow to accept Promise Pre-existing type mismatch where useEditorSave returns Promise but useCommitFlow expected Promise. The return value is unused. Co-Authored-By: Claude Opus 4.6 --- src/hooks/useCommitFlow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useCommitFlow.ts b/src/hooks/useCommitFlow.ts index e4d66ba2..3cb3c1f1 100644 --- a/src/hooks/useCommitFlow.ts +++ b/src/hooks/useCommitFlow.ts @@ -1,7 +1,7 @@ import { useCallback, useState } from 'react' interface CommitFlowConfig { - savePending: () => Promise + savePending: () => Promise loadModifiedFiles: () => Promise commitAndPush: (message: string) => Promise setToastMessage: (msg: string | null) => void