From 924162e813fefe117794db6ee50d6d015451eb12 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 12 May 2016 15:59:30 -0700 Subject: [PATCH] Fix more __React users --- antd/index.d.ts | 5 +---- react-addons-linked-state-mixin/index.d.ts | 21 ++++++++++++--------- react-mdl/index.d.ts | 10 +++------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/antd/index.d.ts b/antd/index.d.ts index cbd92797be..0f14303a19 100644 --- a/antd/index.d.ts +++ b/antd/index.d.ts @@ -3,12 +3,9 @@ // Definitions by: bang88 , Bruce Mitchener // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// + declare namespace Antd { - - import React = __React - // Affix interface AffixProps { /** diff --git a/react-addons-linked-state-mixin/index.d.ts b/react-addons-linked-state-mixin/index.d.ts index 22feaf6777..a7ec5ab123 100644 --- a/react-addons-linked-state-mixin/index.d.ts +++ b/react-addons-linked-state-mixin/index.d.ts @@ -5,21 +5,24 @@ import { Mixin } from 'react'; -declare var LinkedStateMixin: LinkedStateMixin; +declare var LinkedStateMixin: LinkedStateMixin.LinkedStateMixin; +type LinkedStateMixin = LinkedStateMixin.LinkedStateMixin; export = LinkedStateMixin; -interface ReactLink { - value: T; - requestChange(newValue: T): void; -} +declare namespace LinkedStateMixin { + export interface ReactLink { + value: T; + requestChange(newValue: T): void; + } -interface LinkedStateMixin extends Mixin { - linkState(key: string): ReactLink; + export interface LinkedStateMixin extends Mixin { + linkState(key: string): ReactLink; + } } declare module 'react' { interface HTMLAttributes { - checkedLink?: ReactLink; - valueLink?: ReactLink; + checkedLink?: LinkedStateMixin.ReactLink; + valueLink?: LinkedStateMixin.ReactLink; } } diff --git a/react-mdl/index.d.ts b/react-mdl/index.d.ts index 6ae28d58dd..8581c07cb8 100644 --- a/react-mdl/index.d.ts +++ b/react-mdl/index.d.ts @@ -3,11 +3,11 @@ // Definitions by: Brad Zacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +import * as React from 'react'; + +export = __ReactMDL; declare namespace __ReactMDL { - import React = __React; - type __MDLClassProps = React.ClassAttributes; type __MDLOtherProps = React.HTMLProps; class __MDLComponent

extends React.Component {} @@ -600,7 +600,3 @@ declare namespace __ReactMDL { } class Tooltip extends __MDLComponent {} } - -declare module 'react-mdl' { - export = __ReactMDL; -} \ No newline at end of file