auto-claude: subtask-1-2 - Add JSDoc documentation to hook
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user