enzyme-adapter-preact-pure
Version:
Enzyme adapter for Preact
15 lines (14 loc) • 444 B
TypeScript
/**
* Helper functions to enable this library to work with different versions of
* Preact.
*/
import type { Component, VNode } from 'preact';
export { render } from 'preact';
/**
* Find the `Component` instance that produced a given DOM node.
*/
export declare function componentForDOMNode(el: Node): Component | null;
/**
* Return the children of a VNode.
*/
export declare function childElements(el: VNode): (VNode | string | null)[];