UNPKG

@hpcc-js/react

Version:
28 lines (27 loc) 1.4 kB
import { HTMLWidget, SVGWidget } from "@hpcc-js/common"; import * as React from "@hpcc-js/preact-shim"; export declare function render<P>(C: React.FunctionComponent<P>, props: Readonly<P>, parent: Element | Document | ShadowRoot | DocumentFragment, replaceNode?: Element | Text): void; export interface FunctionComponent<T> extends React.FunctionComponent<T> { } export declare function svgRender<P>(C: React.FunctionComponent<P>, props: Readonly<P>, parent: Element | Document | ShadowRoot | DocumentFragment, replaceNode?: Element | Text): void; export declare class HTMLAdapter<P> extends HTMLWidget { protected readonly _component: React.FunctionComponent<P>; protected _props: P; props(): P; props(_: Partial<P>): this; prop<K extends keyof P>(_: K): P[K]; prop<K extends keyof P>(_: K, value: P[K]): this; constructor(_component: React.FunctionComponent<P>); update(domNode: any, element: any): void; } export declare class SVGAdapter<P> extends SVGWidget { protected readonly _component: React.FunctionComponent<P>; protected _props: P; props(): P; props(_: Partial<P>): this; prop<K extends keyof P>(_: K): P[K]; prop<K extends keyof P>(_: K, value: P[K]): this; constructor(_component: React.FunctionComponent<P>); update(domNode: any, element: any): void; } //# sourceMappingURL=render.d.ts.map