prettier/tests/no-semi-typescript/non-null.ts

4 lines
121 B
TypeScript

// the 2nd line needs ASI protection
const el = ReactDOM.findDOMNode(ref)
;(el as HTMLElement)!.style.cursor = 'pointer'