Add some more type assertions to the test

This commit is contained in:
Tom Crockett
2018-03-05 08:50:10 +01:00
committed by Fredrik Nicol
parent 5acc5ac615
commit 542a94c964
+16
View File
@@ -70,3 +70,19 @@ sharedInstance.createStyleSheet({
background: '#000099',
}
});
const styleSheet2 = jss.createStyleSheet(
{
foo: {
display: 'flex',
width: 100,
opacity: .5,
},
},
{
link: true,
}
);
styleSheet2.classes.foo; // $ExpectType string
styleSheet2.classes.bar; // $ExpectError