Fix more __React users

This commit is contained in:
Ryan Cavanaugh
2016-05-12 15:59:30 -07:00
parent d330499747
commit 924162e813
3 changed files with 16 additions and 20 deletions
+1 -4
View File
@@ -3,12 +3,9 @@
// Definitions by: bang88 <https://github.com/bang88>, Bruce Mitchener <https://github.com/waywardmonkeys/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react" />
declare namespace Antd {
import React = __React
// Affix
interface AffixProps {
/**
+12 -9
View File
@@ -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<T> {
value: T;
requestChange(newValue: T): void;
}
declare namespace LinkedStateMixin {
export interface ReactLink<T> {
value: T;
requestChange(newValue: T): void;
}
interface LinkedStateMixin extends Mixin<any, any> {
linkState<T>(key: string): ReactLink<T>;
export interface LinkedStateMixin extends Mixin<any, any> {
linkState<T>(key: string): ReactLink<T>;
}
}
declare module 'react' {
interface HTMLAttributes {
checkedLink?: ReactLink<boolean>;
valueLink?: ReactLink<boolean | string | number>;
checkedLink?: LinkedStateMixin.ReactLink<boolean>;
valueLink?: LinkedStateMixin.ReactLink<boolean | string | number>;
}
}
+3 -7
View File
@@ -3,11 +3,11 @@
// Definitions by: Brad Zacher <https://github.com/bradzacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react" />
import * as React from 'react';
export = __ReactMDL;
declare namespace __ReactMDL {
import React = __React;
type __MDLClassProps = React.ClassAttributes<any>;
type __MDLOtherProps = React.HTMLProps<any>;
class __MDLComponent<P extends __MDLClassProps> extends React.Component<P, {}> {}
@@ -600,7 +600,3 @@ declare namespace __ReactMDL {
}
class Tooltip extends __MDLComponent<TooltipProps> {}
}
declare module 'react-mdl' {
export = __ReactMDL;
}