@types/react-addons-perf
    TypeScript icon, indicating that this package has built-in type declarations

    15.4.0 • Public • Published

    Installation

    npm install --save @types/react-addons-perf

    Summary

    This package contains type definitions for React (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

    // Type definitions for React (react-addons-perf) 15.4
    // Project: http://facebook.github.io/react/
    // Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    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: Sat, 13 Nov 2021 00:31:31 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Asana, AssureSign, and Microsoft.

    Keywords

    none

    Install

    npm i @types/react-addons-perf

    DownloadsWeekly Downloads

    1,599

    Version

    15.4.0

    License

    MIT

    Unpacked Size

    6 kB

    Total Files

    4

    Last publish

    Collaborators

    • types