You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
336 B
15 lines
336 B
import { options } from 'preact';
|
|
import { initDevTools } from './devtools';
|
|
|
|
initDevTools();
|
|
|
|
/**
|
|
* Display a custom label for a custom hook for the devtools panel
|
|
* @type {<T>(value: T, name: string) => T}
|
|
*/
|
|
export function addHookName(value, name) {
|
|
if (options._addHookName) {
|
|
options._addHookName(name);
|
|
}
|
|
return value;
|
|
}
|
|
|