# @types/react-faux-dom

> TypeScript definitions for react-faux-dom

Latest version **4.1.8** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-faux-dom
pnpm add @types/react-faux-dom
yarn add @types/react-faux-dom
bun add @types/react-faux-dom
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.1.8 |
| Published | 2023-11-07 |
| First published | 2017-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-faux-dom
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-faux-dom
- npm.io page: https://npm.io/package/@types/react-faux-dom

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 4.1.8 (latest) — 2023-11-07
- 4.1.5 (ts3.2) — 2020-11-18
- 4.1.3 (ts2.8) — 2019-04-03
- 4.1.0 (ts2.6) — 2018-02-22
- 3.2.0 (ts2.3) — 2017-08-08
- 3.1.0 (ts2.0) — 2017-04-24
- 4.1.7 — 2023-10-18
- 4.1.6 — 2023-09-27
- 4.1.4 — 2020-11-04
- 4.1.2 — 2019-02-13
- 4.1.1 — 2018-05-08
- 3.2.1 — 2018-02-12
- 3.1.1 — 2017-06-23

## README

# Installation
> `npm install --save @types/react-faux-dom`

# Summary
This package contains type definitions for react-faux-dom (https://github.com/Olical/react-faux-dom).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-faux-dom.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-faux-dom/index.d.ts)
````ts
import * as React from "react";

export class Element extends HTMLElement {
    style: any;

    constructor(nodeName: string, parentNode?: Element);

    toReact(): React.ReactElement;
}

export const defaultView: {
    getComputedStyle(node: Element): { getPropertyValue(name: string): string };
};

export function createElement(nodeName: string): Element;

export function createElementNS(namespace: string, nodeName: string): Element;

export function compareDocumentPosition(): number;

export interface ReactFauxDomProps {
    connectFauxDOM(node: string, name: string, discardNode?: any): Element;
    drawFauxDOM(): void;
    animateFauxDOM(duration: number): void;
    stopAnimatingFauxDOM(): void;
    isAnimatingFauxDOM(): boolean;
}

export function withFauxDOM<P>(
    WrappedComponent: React.ComponentClass<P>,
): React.ComponentClass<Pick<P, Exclude<keyof P, keyof ReactFauxDomProps>>>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Ali Taheri Moghaddar](https://github.com/alitaheri), [Cleve Littlefield](https://github.com/cleverguy25), [Michał Kostrzyński](https://github.com/deviousm), and [Hanai](https://github.com/hanai).

---
_Source: https://npm.io/package/@types/react-faux-dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
