From b51a8da34bd7b724123e0490fc083353c6ef8d9e Mon Sep 17 00:00:00 2001 From: Egor Shulga Date: Fri, 11 Aug 2017 17:44:07 +0300 Subject: [PATCH] Add dtslint type assertion test. --- types/react-router/test/WithRouterDecorator.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/react-router/test/WithRouterDecorator.tsx b/types/react-router/test/WithRouterDecorator.tsx index 6d87de2e6b..2eb6bd2335 100644 --- a/types/react-router/test/WithRouterDecorator.tsx +++ b/types/react-router/test/WithRouterDecorator.tsx @@ -5,6 +5,7 @@ interface TOwnProps { username: string; } +// $ExpectType Component @withRouter class Component extends React.Component { render() { @@ -16,4 +17,7 @@ class Component extends React.Component { const WithRouterTest = () => (); +// $ExpectType Element +WithRouterTest(); + export default WithRouterTest;