/
githubmirror
/
preact
Обзор
Документация
Войти
/
githubmirror
/
preact
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
10.27.0
debug/src/index.d.ts
23 строки
648 B
Ryan Christian
chore: Backport refcallback type and debug helpers (#4860)
28 июл 2025, 12:08
Не верифицирован
28 июл 2025, 12:08
43598cf
Код
Авторство
О чём код?
import { VNode } from 'preact'; /** * Get the currently rendered `vnode` */ export function getCurrentVNode(): VNode | null; /** * Return the component stack that was captured up to this point. */ export function getOwnerStack(vnode: VNode): string; /** * Setup code to capture the component trace while rendering. Note that * we cannot simply traverse `vnode._parent` upwards, because we have some * debug messages for `this.setState` where the `vnode` is `undefined`. */ export function setupComponentStack(): void; /** * Reset the history of which prop type warnings have been logged. */ export function resetPropWarnings(): void;