site/node_modules/preact/devtools/src/index.d.ts
2024-10-14 08:09:33 +02:00

8 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;