Renaming the legacy module for tests

Apparently they conflict otherwise which is unfortunate.
This commit is contained in:
Phips Peter 2014-10-17 12:14:42 -07:00
parent 1d663ab9a3
commit 8336da666d
5 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/// <reference path="react-addons-0.11.d.ts" />
import React = require("react/addons");
import React = require("react/addons-0.11");
var PropTypesSpecification: React.Specification<any, any> = {
propTypes: {

View File

@ -5,7 +5,7 @@
/// <reference path="../../react/legacy/react-0.11.d.ts" />
declare module "react/addons" {
declare module "react/addons-0.11" {
export = React;
}

View File

@ -1,5 +1,5 @@
/// <reference path="react-0.11.d.ts" />
import React = require("react");
import React = require("react-0.11");
var PropTypesSpecification: React.Specification<any, any> = {
propTypes: {
@ -63,6 +63,7 @@ var PropTypesSpecification: React.Specification<any, any> = {
return null;
}
},
render: (): React.Descriptor<any> => {
return null;
}

View File

@ -3,7 +3,7 @@
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "react" {
declare module "react-0.11" {
export = React;
}

2
react/react.d.ts vendored
View File

@ -1,4 +1,4 @@
// Type definitions for React 0.11.2
// Type definitions for React 0.12.RC
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped