microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
147d9cc549da9c4c4297f65e799484b78fe8de80

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

46lines · modecode

1// 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 {
9 interface ComponentPerfContext {
10 current: string;
11 owner: string;
12 }
13
14 interface NumericPerfContext {
15 [key: string]: number;
16 }
17
18 interface Measurements {
19 exclusive: NumericPerfContext;
20 inclusive: NumericPerfContext;
21 render: NumericPerfContext;
22 counts: NumericPerfContext;
23 writes: NumericPerfContext;
24 displayNames: {
25 [key: string]: ComponentPerfContext;
26 };
27 totalTime: number;
28 }
29
30 namespace __Addons {
31 namespace Perf {
32 export function start(): void;
33 export function stop(): void;
34 export function printInclusive(measurements: Measurements[]): void;
35 export function printExclusive(measurements: Measurements[]): void;
36 export function printWasted(measurements: Measurements[]): void;
37 export function printDOM(measurements: Measurements[]): void;
38 export function getLastMeasurements(): Measurements[];
39 }
40 }
41}
42
43declare module "react-addons-perf" {
44 import Perf = __React.__Addons.Perf;
45 export = Perf;
46}
47