Skip to content

Commit 5de1313

Browse files
committed
Added documentation for the return object of useEdit
1 parent 041f868 commit 5de1313

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/file/useEdit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { updateContent } from '../..';
1313
* @param {string} content - Edited/updated content.
1414
* @param {string} message - Optional commit message.
1515
* @param {string} filePath - file path, file path for the file being edited.
16+
* @return {{error: object, isError: boolean, isEditing: boolean, onSaveEdit: (function(_branch: string)), editResponse: object}}
1617
*/
1718
export default function useEdit({
1819
sha,

0 commit comments

Comments
 (0)