Files
JiboViteDocs/node_modules/preact/devtools/src/index.d.ts

9 lines
233 B
TypeScript
Raw Normal View History

2026-05-03 12:12:57 -04:00
/**
* 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;