This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
"no-unnecessary-type-assertion" flags necessary assertion Element as HTMLElement
#3569
Labels
Bug Report
tslint --format stylish --project tsconfig.json
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
No error.
findDOMNode()
returnsElement
which has nofocus()
method, subclassHTMLElement
does so assertion is necessary.The
findDOMNode()
definition from@types/react-dom
looks like this:Element
comes fromlib.es6.d.ts
.The text was updated successfully, but these errors were encountered: