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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user