Fix material-ui

This commit is contained in:
Ryan Cavanaugh
2016-05-12 15:34:24 -07:00
parent 67c26c1c44
commit be86c436ce
2 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,8 @@
// Definitions by: Nathan Brown <https://github.com/ngbrown>, Oliver Herrmann <https://github.com/herrmanno>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="react" />
/// <reference types="react" />
/// <reference types="react-addons-linked-state-mixin" />
declare module "material-ui" {
export import AppBar = __MaterialUI.AppBar; // require('material-ui/lib/app-bar');
@@ -95,8 +96,6 @@ declare module "material-ui" {
}
declare namespace __MaterialUI {
export import React = __React;
// ReactLink is from "react/addons"
interface ReactLink<T> {
value: T;

View File

@@ -163,10 +163,10 @@ let muiTheme: MuiTheme = ThemeManager.getMuiTheme({
let SelectableList = SelectableContainerEnhance(List);
@ThemeDecorator(muiTheme)
class MaterialUiTests extends React.Component<{}, MaterialUiTestsState> implements React.LinkedStateMixin {
class MaterialUiTests extends React.Component<{}, MaterialUiTestsState> implements LinkedStateMixin {
// injected with mixin
linkState: <T>(key: string) => React.ReactLink<T>;
linkState: <T>(key: string) => LinkedStateMixin.ReactLink<T>;
private picker12hr: TimePicker;
private picker24hr: TimePicker;