preact
Version:
Fast 4kb React-compatible Virtual DOM library.
34 lines (27 loc) • 919 B
TypeScript
import { VNode } from '../../src/index';
/**
* Return the owner stack captured for the current render, or null when unavailable.
*/
export function captureOwnerStack(): string | null;
/**
* Get the currently rendered `vnode`
*/
export function getCurrentVNode(): VNode | null;
/**
* Get human readable name of the component/dom node
*/
export function getDisplayName(vnode: VNode): string;
/**
* 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;