diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.ts index c7d63679c8..865d74e386 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.ts @@ -55,7 +55,7 @@ describe('React dom test utils', () => { React.createElement('input', { type: 'text' }), element ) as Element; - const node = ReactDOM.findDOMNode(dom); + const node = ReactDOM.findDOMNode(dom) as HTMLInputElement; node.value = 'giraffe'; ReactTestUtils.Simulate.change(node); diff --git a/types/react-dom/tslint.json b/types/react-dom/tslint.json index 3866ae7932..c1874f7fe3 100644 --- a/types/react-dom/tslint.json +++ b/types/react-dom/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "dt-header": false + "dt-header": false, + "no-unnecessary-type-assertion": false } } \ No newline at end of file