From d3304997476ce4bb303ec541d8b38db6b1604b28 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 12 May 2016 15:59:22 -0700 Subject: [PATCH] Fix more __React users --- fixed-data-table/index.d.ts | 34 +++++++++++++++++----------------- fixed-data-table/tsconfig.json | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/fixed-data-table/index.d.ts b/fixed-data-table/index.d.ts index fbab36e505..762b09d103 100644 --- a/fixed-data-table/index.d.ts +++ b/fixed-data-table/index.d.ts @@ -64,7 +64,7 @@ declare namespace FixedDataTable { * horizontally. * */ - export interface TableProps extends __React.Props { + export interface TableProps extends React.Props
{ /** * Pixel width of table. If all columns do not fit, a * horizontal scrollbar will appear. @@ -206,30 +206,30 @@ declare namespace FixedDataTable { /** * Callback that is called when a row is clicked. */ - onRowClick?: (event: __React.SyntheticEvent, rowIndex: number) => void; + onRowClick?: (event: React.SyntheticEvent, rowIndex: number) => void; /** * Callback that is called when a row is double clicked. */ - onRowDoubleClick?: (event: __React.SyntheticEvent, rowIndex: number) => void; + onRowDoubleClick?: (event: React.SyntheticEvent, rowIndex: number) => void; /** * Callback that is called when a mouse-down event happens * on a row. */ - onRowMouseDown?: (event: __React.SyntheticEvent, rowIndex: number) => void; + onRowMouseDown?: (event: React.SyntheticEvent, rowIndex: number) => void; /** * Callback that is called when a mouse-enter event happens * on a row. */ - onRowMouseEnter?: (event: __React.SyntheticEvent, rowIndex: number) => void; + onRowMouseEnter?: (event: React.SyntheticEvent, rowIndex: number) => void; /** * Callback that is called when a mouse-leave event happens * on a row. */ - onRowMouseLeave?: (event: __React.SyntheticEvent, rowIndex: number) => void; + onRowMouseLeave?: (event: React.SyntheticEvent, rowIndex: number) => void; /** * Callback that is called when resizer has been released @@ -249,7 +249,7 @@ declare namespace FixedDataTable { /** * Component that defines the attributes of table column. */ - interface ColumnProps extends __React.Props { + interface ColumnProps extends React.Props { /** * The horizontal alignment of the table cell content. * @@ -284,7 +284,7 @@ declare namespace FixedDataTable { * * If you pass in a function, you will receive the same props object as the first argument. */ - header?: string | __React.ReactElement | ((props: CellProps) => (string | __React.ReactElement)); + header?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * This is the body cell that will be cloned for this @@ -308,7 +308,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same * props object as the first argument. */ - cell?: string | __React.ReactElement | ((props: CellProps) => (string | __React.ReactElement)); + cell?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * The footer cell for this column. This can either be a @@ -331,7 +331,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same * props object as the first argument. */ - footer?: string | __React.ReactElement | ((props: CellProps) => (string | __React.ReactElement)); + footer?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * This is used to uniquely identify the column, and is not @@ -398,7 +398,7 @@ declare namespace FixedDataTable { /** * Component that defines the attributes of a table column group. */ - export interface ColumnGroupProps extends __React.Props { + export interface ColumnGroupProps extends React.Props { /** * The horizontal alignment of the table cell content. * 'left', 'center', 'right' @@ -433,7 +433,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same props * object as the first argument. */ - header: string | __React.ReactElement | ((props: CellProps) => (string | __React.ReactElement)); + header: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); } /** @@ -458,7 +458,7 @@ declare namespace FixedDataTable { * /> * ); */ - export interface CellProps extends __React.HTMLAttributes { + export interface CellProps extends React.HTMLAttributes { /** * The row index of the cell. */ @@ -482,13 +482,13 @@ declare namespace FixedDataTable { columnKey?: string | number; } - export class Table extends __React.Component { + export class Table extends React.Component { } - export class Column extends __React.Component { + export class Column extends React.Component { } - export class ColumnGroup extends __React.Component { + export class ColumnGroup extends React.Component { } - export class Cell extends __React.Component { + export class Cell extends React.Component { } } diff --git a/fixed-data-table/tsconfig.json b/fixed-data-table/tsconfig.json index bc2b1729e5..43a73d7e1e 100644 --- a/fixed-data-table/tsconfig.json +++ b/fixed-data-table/tsconfig.json @@ -1,7 +1,7 @@ { "files": [ "index.d.ts", - "fixed-data-table-0.4.7-tests.tsx" + "fixed-data-table-tests.tsx" ], "compilerOptions": { "module": "commonjs",