auto-claude: subtask-1-2 - Add JSDoc documentation to hook

This commit is contained in:
2026-01-25 02:38:22 +01:00
parent 29ad019884
commit 2f8c79612d
+5
View File
@@ -1,6 +1,11 @@
import { useState, useEffect, useCallback } from 'react'; import { useState, useEffect, useCallback } from 'react';
import { handleError } from '../utils/errorHandling'; import { handleError } from '../utils/errorHandling';
/**
* Function type for updating the stored value
* @template T - The type of the stored value
* @param value - Either a new value of type T or an updater function that takes the current value and returns a new value
*/
type SetValue<T> = (value: T | ((val: T) => T)) => void; type SetValue<T> = (value: T | ((val: T) => T)) => void;
/** /**