mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Change require('react') to import * as React from 'react'
This commit is contained in:
2
types/alt/index.d.ts
vendored
2
types/alt/index.d.ts
vendored
@@ -141,7 +141,7 @@ declare module "alt/utils/chromeDebug" {
|
||||
|
||||
declare module "alt/AltContainer" {
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
interface ContainerProps {
|
||||
store?:AltJS.AltStore<any>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React = require('react');
|
||||
import Fluxxor = require('fluxxor');
|
||||
import * as React from 'react';
|
||||
import * as Fluxxor from 'fluxxor';
|
||||
|
||||
class DispatcherTest {
|
||||
v: Fluxxor.Dispatcher;
|
||||
|
||||
2
types/jsnox/index.d.ts
vendored
2
types/jsnox/index.d.ts
vendored
@@ -6,7 +6,7 @@
|
||||
|
||||
/// <reference types="react" />
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
/*
|
||||
* JSnoX requires an object with a createElement method.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import React = require('react');
|
||||
import jsnox = require('jsnox');
|
||||
import * as React from 'react';
|
||||
import * as jsnox from 'jsnox';
|
||||
var $ = jsnox(React);
|
||||
|
||||
interface PersonProps {
|
||||
|
||||
3
types/radium/index.d.ts
vendored
3
types/radium/index.d.ts
vendored
@@ -4,8 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import React = require('react');
|
||||
import ReactComponent = React.Component;
|
||||
import * as React from 'react';
|
||||
|
||||
export = Radium;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React = require('react');
|
||||
import RcSelect = require('rc-select');
|
||||
import * as React from 'react';
|
||||
import * as RcSelect from 'rc-select';
|
||||
|
||||
class Component extends React.Component<any, any> {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React = require('react');
|
||||
import shallowCompare = require('react-addons-shallow-compare');
|
||||
import * as React from 'react';
|
||||
import * as shallowCompare from 'react-addons-shallow-compare';
|
||||
|
||||
export class MyComponent extends React.Component<{}, {}> {
|
||||
shouldComponentUpdate(nextProps: any, nextState: any, nextContext: any): boolean {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// region Imports
|
||||
import React = require('react');
|
||||
import ReactDOM = require('react-dom');
|
||||
import Autosuggest = require('react-autosuggest');
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as Autosuggest from 'react-autosuggest';
|
||||
// endregion
|
||||
|
||||
interface Language {
|
||||
|
||||
2
types/react-body-classname/index.d.ts
vendored
2
types/react-body-classname/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
export = BodyClassName;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React = require("react");
|
||||
import BodyClassName = require("react-body-classname");
|
||||
import * as React from "react";
|
||||
import BodyClassName = require("react-body-classname");
|
||||
|
||||
class SomeComponent {
|
||||
render() {
|
||||
|
||||
4
types/react-cropper/index.d.ts
vendored
4
types/react-cropper/index.d.ts
vendored
@@ -4,8 +4,8 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import cropperjs = require('cropperjs');
|
||||
import React = require("react");
|
||||
import * as cropperjs from 'cropperjs';
|
||||
import * as React from 'react';
|
||||
|
||||
import Data = cropperjs.Data;
|
||||
import ContainerData = cropperjs.ContainerData;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Test adapted from the ReactDnD chess game tutorial:
|
||||
// http://gaearon.github.io/react-dnd/docs-tutorial.html
|
||||
|
||||
import React = require("react");
|
||||
import ReactDnd = require("react-dnd");
|
||||
import * as React from "react";
|
||||
import * as ReactDnd from "react-dnd";
|
||||
|
||||
const r = React.DOM;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Test adapted from the ReactDnD chess game tutorial:
|
||||
// http://gaearon.github.io/react-dnd/docs-tutorial.html
|
||||
|
||||
import React = require("react");
|
||||
import ReactDnd = require("react-dnd");
|
||||
import * as React from "react";
|
||||
import * as ReactDnd from "react-dnd";
|
||||
|
||||
var r = React.DOM;
|
||||
|
||||
|
||||
3
types/react-fontawesome/index.d.ts
vendored
3
types/react-fontawesome/index.d.ts
vendored
@@ -6,8 +6,7 @@
|
||||
|
||||
declare module "react-fontawesome" {
|
||||
|
||||
//Import react
|
||||
import React = require('react');
|
||||
import * as React from 'react';
|
||||
|
||||
type FontAwesomeSize = 'lg' | '2x' | '3x' | '4x' | '5x';
|
||||
type FontAwesomeStack = "1x" | "2x";
|
||||
|
||||
2
types/react-highlight-words/index.d.ts
vendored
2
types/react-highlight-words/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
export = Highlighter;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
import Highlighter = require("react-highlight-words");
|
||||
|
||||
<Highlighter
|
||||
|
||||
2
types/react-joyride/index.d.ts
vendored
2
types/react-joyride/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
export default class Joyride extends React.Component<Props, State> {
|
||||
constructor(props: Props);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
import Joyride, { Step } from "react-joyride";
|
||||
|
||||
class NewComponent extends React.Component<undefined, undefined> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Recaptcha = require('react-recaptcha');
|
||||
import ReactDOM = require("react-dom");
|
||||
import React = require("react");
|
||||
import * as ReactDOM from "react-dom";
|
||||
import * as React from "react";
|
||||
|
||||
ReactDOM.render(
|
||||
<Recaptcha
|
||||
|
||||
2
types/react-side-effect/index.d.ts
vendored
2
types/react-side-effect/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
declare function withSideEffect(
|
||||
reducePropsToState: (propsList: any[]) => any,
|
||||
|
||||
2
types/react-sortable-hoc/index.d.ts
vendored
2
types/react-sortable-hoc/index.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
declare module 'react-sortable-hoc' {
|
||||
import React = require('react');
|
||||
import * as React from 'react';
|
||||
|
||||
export type Axis = 'x' | 'y' | 'xy';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React = require('react');
|
||||
import ReactDOM = require('react-dom');
|
||||
import ReactSortableHOC = require('react-sortable-hoc');
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as ReactSortableHOC from 'react-sortable-hoc';
|
||||
|
||||
interface SortableItemProps {
|
||||
value: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React = require("react");
|
||||
import ReactDOM = require("react-dom");
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import { Tabs, TabList, Tab, TabPanel, resetIdCounter } from "react-tabs";
|
||||
|
||||
resetIdCounter();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
import { create } from "react-test-renderer";
|
||||
import { createRenderer } from 'react-test-renderer/shallow';
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
/// <reference types='react-dom' />
|
||||
|
||||
import React = require('react');
|
||||
import ReactDOM = require('react-dom');
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
|
||||
import ReactUserTour from 'react-user-tour';
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import React = require("react");
|
||||
import ReactDOM = require("react-dom");
|
||||
import ReactDOMServer = require("react-dom/server");
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import * as ReactDOMServer from "react-dom/server";
|
||||
import createFragment = require("react-addons-create-fragment");
|
||||
import CSSTransitionGroup = require("react-addons-css-transition-group");
|
||||
import LinkedStateMixin = require("react-addons-linked-state-mixin");
|
||||
import Perf = require("react-addons-perf");
|
||||
import PureRenderMixin = require("react-addons-pure-render-mixin");
|
||||
import shallowCompare = require("react-addons-shallow-compare");
|
||||
import TestUtils = require("react-addons-test-utils");
|
||||
import TransitionGroup = require("react-addons-transition-group");
|
||||
import * as CSSTransitionGroup from "react-addons-css-transition-group";
|
||||
import * as LinkedStateMixin from "react-addons-linked-state-mixin";
|
||||
import * as Perf from "react-addons-perf";
|
||||
import * as PureRenderMixin from "react-addons-pure-render-mixin";
|
||||
import * as shallowCompare from "react-addons-shallow-compare";
|
||||
import * as TestUtils from "react-addons-test-utils";
|
||||
import * as TransitionGroup from "react-addons-transition-group";
|
||||
import update = require("react-addons-update");
|
||||
|
||||
interface Props extends React.Attributes {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
interface SCProps {
|
||||
foo?: number;
|
||||
|
||||
Reference in New Issue
Block a user