diff --git a/types/react-hyperscript/react-hyperscript-tests.ts b/types/react-hyperscript/react-hyperscript-tests.ts index d8737e6ca9..1d037d6bc2 100644 --- a/types/react-hyperscript/react-hyperscript-tests.ts +++ b/types/react-hyperscript/react-hyperscript-tests.ts @@ -1,13 +1,17 @@ import * as React from 'react'; import * as h from 'react-hyperscript'; -class SomeComponent extends React.Component { +interface PropTypes { + foo: string; +} + +class SomeComponent extends React.Component { render() { return React.createElement('div'); } } -const StatelessComponent = () => React.createElement('div'); +const StatelessComponent: React.StatelessComponent = () => React.createElement('div'); class MainComponent extends React.Component { render() { @@ -25,7 +29,8 @@ class MainComponent extends React.Component { h('a', {href: 'http://whatever.com'}, 'One list item') ]), h('li', 'Another list item') - ]) + ]), + h('img', {src: 'https://example.com/some-image'}) ]); } }