# @types/react-addons-perf

> TypeScript definitions for react-addons-perf

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

## Install

```sh
npm install @types/react-addons-perf
pnpm add @types/react-addons-perf
yarn add @types/react-addons-perf
bun add @types/react-addons-perf
```

## 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 | 15.4.2 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Recent versions

- 15.4.2 (latest) — 2023-11-07
- 15.4.0 (ts3.7) — 2021-11-13
- 0.14.18 (ts2.0) — 2016-12-30
- 15.4.1 — 2023-10-18
- 0.14.17 — 2016-09-19
- 0.14.16 — 2016-08-25
- 0.14.15 — 2016-08-19
- 0.14.14 — 2016-08-02
- 0.14.13 — 2016-07-14
- 0.14.12-alpha — 2016-07-08
- 0.14.11-alpha — 2016-07-04
- 0.14.10-alpha — 2016-07-02
- 0.14.9-alpha — 2016-07-01
- 0.14.8-alpha — 2016-05-25
- 0.14.7-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/react-addons-perf/versions

## README

# Installation
> `npm install --save @types/react-addons-perf`

# Summary
This package contains type definitions for react-addons-perf (http://facebook.github.io/react/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-addons-perf.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-addons-perf/index.d.ts)
````ts
export = Perf;

interface ComponentPerfContext {
    current: string;
    owner: string;
}

interface NumericPerfContext {
    [key: string]: number;
}

interface Measurements {
    exclusive: NumericPerfContext;
    inclusive: NumericPerfContext;
    render: NumericPerfContext;
    counts: NumericPerfContext;
    writes: NumericPerfContext;
    displayNames: {
        [key: string]: ComponentPerfContext;
    };
    totalTime: number;
}

declare namespace Perf {
    export function start(): void;
    export function stop(): void;
    export function printInclusive(measurements?: Measurements[]): void;
    export function printExclusive(measurements?: Measurements[]): void;
    export function printWasted(measurements?: Measurements[]): void;
    export function printOperations(measurements?: Measurements[]): void;
    export function getLastMeasurements(): Measurements[];
    export function getExclusive(measurements?: Measurements[]): any;
    export function getInclusive(measurements?: Measurements[]): any;
    export function getWasted(measurements?: Measurements[]): any;
    export function getOperations(measurements?: Measurements[]): any;

    // Renamed to printOperations().  Please use it instead.
    export function printDOM(measurements?: Measurements[]): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), and [Microsoft](https://microsoft.com).

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