mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Renaming the legacy module for tests
Apparently they conflict otherwise which is unfortunate.
This commit is contained in:
parent
1d663ab9a3
commit
8336da666d
@ -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: {
|
||||
|
||||
2
react-addons/legacy/react-addons-0.11.d.ts
vendored
2
react-addons/legacy/react-addons-0.11.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
2
react/legacy/react-0.11.d.ts
vendored
2
react/legacy/react-0.11.d.ts
vendored
@ -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
2
react/react.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user