mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Add some more type assertions to the test
This commit is contained in:
committed by
Fredrik Nicol
parent
5acc5ac615
commit
542a94c964
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user