leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.66k stars 659 forks source link

Property 'msPointerEnabled' does not exist on type 'Navigator' #1164

Closed d-torrance closed 2 years ago

d-torrance commented 2 years ago

I get the following build error in Debian unstable using TypeScript from the Debian node-typescript package:

$ tsc --version
Version 4.4.3
$ tsc --module ES6
src/nouislider.ts:433:28 - error TS2551: Property 'msPointerEnabled' does not exist on type 'Navigator'. Did you mean 'pointerEnabled'?

433         : window.navigator.msPointerEnabled
                               ~~~~~~~~~~~~~~~~

  ../../usr/share/nodejs/typescript/lib/lib.dom.d.ts:10406:14
    10406     readonly pointerEnabled: boolean;
                       ~~~~~~~~~~~~~~
    'pointerEnabled' is declared here.

Found 1 error.
leongersen commented 2 years ago

Looks like it was removed from that interface. I guess window.navigator could be cast to any in that check.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.