preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
15
frontend/node_modules/preact/devtools/src/index.js
generated
vendored
Normal file
15
frontend/node_modules/preact/devtools/src/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue