From 2f8c79612ddc299b6acbb3230ffe7b2d3e521108 Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Sun, 25 Jan 2026 02:38:22 +0100 Subject: [PATCH] auto-claude: subtask-1-2 - Add JSDoc documentation to hook --- src/hooks/useLocalStorage.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks/useLocalStorage.ts b/src/hooks/useLocalStorage.ts index 7a35919..ee1029f 100644 --- a/src/hooks/useLocalStorage.ts +++ b/src/hooks/useLocalStorage.ts @@ -1,6 +1,11 @@ import { useState, useEffect, useCallback } from 'react'; 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 = (value: T | ((val: T) => T)) => void; /**