microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.1.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ReactTypings/react/react-addons-perf.d.ts

46lines · modeblame

d24fea86Joshua Skelton10 years ago1// Type definitions for React v0.14 (react-addons-perf)
2// Project: http://facebook.github.io/react/
3// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
4// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
6/// <reference path="react.d.ts" />
7
8declare namespace __React {
9interface ComponentPerfContext {
10current: string;
11owner: string;
12}
13
14interface NumericPerfContext {
15[key: string]: number;
16}
17
18interface Measurements {
19exclusive: NumericPerfContext;
20inclusive: NumericPerfContext;
21render: NumericPerfContext;
22counts: NumericPerfContext;
23writes: NumericPerfContext;
24displayNames: {
25[key: string]: ComponentPerfContext;
26};
27totalTime: number;
28}
29
30namespace __Addons {
31namespace Perf {
32export function start(): void;
33export function stop(): void;
34export function printInclusive(measurements: Measurements[]): void;
35export function printExclusive(measurements: Measurements[]): void;
36export function printWasted(measurements: Measurements[]): void;
37export function printDOM(measurements: Measurements[]): void;
38export function getLastMeasurements(): Measurements[];
39}
40}
41}
42
43declare module "react-addons-perf" {
44import Perf = __React.__Addons.Perf;
45export = Perf;
46}