Bug Report
π Search Terms
π Version & Regression Information
- This changed between versions 4.8 and 4.9
β― Playground Link
Playground link with relevant code
π» Code
export const checkIsTouchDevice = () =>
"ontouchstart" in window ||
"msMaxTouchPoints" in
// β Unexpected TS error: Property 'navigator' does not exist on type 'never'
window.navigator;
I've reduced it down to this:
declare const obj: { a: unknown; b: unknown };
"a" in obj ||
"prop" in
// β Unexpected TS error: Property 'b' does not exist on type 'never'
obj.b;