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; /**