Add dtslint type assertion test.

This commit is contained in:
Egor Shulga
2017-08-11 17:44:07 +03:00
parent aa596d8723
commit b51a8da34b

View File

@@ -5,6 +5,7 @@ interface TOwnProps {
username: string;
}
// $ExpectType Component
@withRouter
class Component extends React.Component<TOwnProps, {}> {
render() {
@@ -16,4 +17,7 @@ class Component extends React.Component<TOwnProps, {}> {
const WithRouterTest = () => (<Component username="John" />);
// $ExpectType Element
WithRouterTest();
export default WithRouterTest;