/
githubmirror
/
preact
Обзор
Документация
Войти
/
githubmirror
/
preact
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/src/index.d.ts
8 строк
233 B
Marvin Hagemeister
Move hook naming function to preact/devtools
22 янв 2021, 21:32
22 янв 2021, 21:32
26278c4
Код
Авторство
О чём код?
/** * 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;