Use react consistentlly as a module

This commit is contained in:
Mohamed Hegazy
2016-07-08 11:53:25 -07:00
parent 66c2cf2409
commit 5b2f3e7c26
14 changed files with 17 additions and 8 deletions

View File

@@ -5,9 +5,12 @@
/// <reference types="react"/>
import * as React from "react";
export = FixedDataTable;
export as namespace FixedDataTable;
declare namespace FixedDataTable {
export var version: string;

1
fluxxor/index.d.ts vendored
View File

@@ -7,6 +7,7 @@
/// <reference types="eventemitter3" />
import * as EventEmitter3 from 'eventemitter3';
import * as React from "react";
declare namespace Fluxxor {
class Dispatcher {

2
jsnox/index.d.ts vendored
View File

@@ -5,8 +5,6 @@
/// <reference types="react" />
import React = require("react");
/*

4
q-io/index.d.ts vendored
View File

@@ -3,8 +3,8 @@
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="node" />
///<reference types="Q" />
/// <reference types="node" />
/// <reference types="q" />
//TODO add support for q-io/http-apps
//TODO add verified support for q-io/fs-mock

1
radium/index.d.ts vendored
View File

@@ -5,7 +5,6 @@
/// <reference types="react"/>
import React = require('react');
interface ReactComponent<P, S> {

View File

@@ -5,6 +5,8 @@
/// <reference types="react" />
import * as React from "react";
import Select = RcSelect.Select;
import Option = RcSelect.Option;
import OptGroup = RcSelect.OptGroup;

View File

@@ -7,7 +7,7 @@
/// <reference types="cropperjs"/>
import cropperjs = require('cropperjs');
import React = require("react");
import Data = cropperjs.Data;
import ContainerData = cropperjs.ContainerData;

View File

@@ -5,6 +5,7 @@
/// <reference types="react"/>
import * as React from "react";
import DataGrid = ReactDataGrid.DataGrid;
export = DataGrid;

View File

@@ -5,6 +5,8 @@
///<reference types="react" />
import * as React from "react";
declare var Dropzone: typeof ReactDropzone.Dropzone;
export = Dropzone;

View File

@@ -5,6 +5,8 @@
///<reference types="react" />
import * as React from "react";
import Infinite = ReactInfinite.Infinite;
export = Infinite;

View File

@@ -4,6 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react"/>
declare namespace reactInputCalendar {
export interface ReactInputCalendarProps {
/**

2
rebass/index.d.ts vendored
View File

@@ -5,6 +5,8 @@
///<reference types="react" />
import * as React from "react";
export interface BaseProps<C> extends React.Props<C> {
tagName?: string;
className?: string;

View File

@@ -5,7 +5,6 @@
/// <reference types="react" />
import * as React from 'react';
interface IDevTools {

View File

@@ -6,6 +6,5 @@
/// <reference types="redux" />
/// <reference types="react" />
export declare function devTools(): Function;
export declare function persistState(sessionId: any, stateDeserializer?: Function, actionDeserializer?: Function): Function;