Fix travis build errors in material-ui tests

* Create type Stylesheet who's props are all of type CSSProperties
* Declared function createStylesheet which takes in an object and converts it's key-values to CSSProperties
This commit is contained in:
Wayne Dela Cruz
2017-03-29 10:06:29 +08:00
parent 6f8a10f1a1
commit e6ad73d5e3
+8 -2
View File
@@ -109,7 +109,13 @@ function handleTouchTap() {
alert('onTouchTap triggered on the title component');
}
const styles = {
type Stylesheet<T> = {
[P in keyof T]: React.CSSProperties
};
declare function createStylesheet<T>(args: T): Stylesheet<T>;
const styles = createStylesheet({
title: {
cursor: 'pointer',
},
@@ -232,7 +238,7 @@ const styles = {
floatingLabelFocusStyle: {
color: blue500,
},
};
});
const style = {
marginRight: 20,