Commit c83dd4d 1 parent 2077ad0 commit c83dd4d Copy full SHA for c83dd4d
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -245,12 +245,13 @@ const anim1 = keyframes`
245
245
; < WithOptionalUnionClassName css = { { color : 'hotpink' } } />
246
246
247
247
const WithNoClassName = ( props : { foo : string } ) => null
248
- ; < WithNoClassName />
248
+ ; < WithNoClassName foo = "bar" />
249
249
// $ExpectError
250
- ; < WithNoClassName css = { { color : 'hotpink' } } />
250
+ ; < WithNoClassName foo = "bar" css = { { color : 'hotpink' } } />
251
251
252
- const WithOptionalUndefinedClassName = ( props : { foo : string } ) => null
253
- ; < WithOptionalUndefinedClassName foo = "bar" />
252
+ const WithOptionalUndefinedClassName = ( props : { className ?: undefined } ) =>
253
+ null
254
+ ; < WithOptionalUndefinedClassName />
254
255
// $ExpectError
255
- ; < WithOptionalUndefinedClassName foo = "bar" css = { { color : 'hotpink' } } />
256
+ ; < WithOptionalUndefinedClassName css = { { color : 'hotpink' } } />
256
257
}
You can’t perform that action at this time.
0 commit comments