mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Fix more __React users
This commit is contained in:
Vendored
+1
-4
@@ -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
@@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-7
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user