mirror of
https://github.com/imezx/Warp.git
synced 2025-04-28 16:40:02 +00:00
9 lines
233 B
TypeScript
9 lines
233 B
TypeScript
|
/**
|
||
|
* Customize the displayed name of a useState, useReducer or useRef hook
|
||
|
* in the devtools panel.
|
||
|
*
|
||
|
* @param value Wrapped native hook.
|
||
|
* @param name Custom name
|
||
|
*/
|
||
|
export function addHookName<T>(value: T, name: string): T;
|