Skip to content

Commit

Permalink
Add test which verifies #1226 is fixed by type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Ginnivan committed Nov 4, 2019
1 parent 4f0e16b commit c336eba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/styled-base/types/tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ const Input1 = styled('input', {
;<Input1 />
const Input2 = Button0.withComponent('input')

const View = styled('div')({
display: 'flex',
position: 'relative',
boxSizing: 'border-box',
flexDirection: 'column'
})

const Input3 = styled(View.withComponent('input'))({
color: 'red'
})
;<Input3
onChange={e => {
// $ExpectType ChangeEvent<HTMLInputElement>
e
}}
/>

const Canvas0 = styled('canvas', {
shouldForwardProp(propName) {
return propName === 'width' || propName === 'height'
Expand Down

0 comments on commit c336eba

Please sign in to comment.