Skip to content

Instantly share code, notes, and snippets.

@tlakomy
Created April 26, 2017 19:41
Show Gist options
  • Save tlakomy/71153238662af3781732a0ff82597058 to your computer and use it in GitHub Desktop.
Save tlakomy/71153238662af3781732a0ff82597058 to your computer and use it in GitHub Desktop.
MouseEvent instead of DOMEvent
frontend/Draggable.js:18
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `preventDefault` incompatible with invariant use in
44: onMove(evt: DOMEvent) {
^^^^^^^^ object type
frontend/Draggable.js:18
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `stopPropagation` incompatible with invariant use in
44: onMove(evt: DOMEvent) {
^^^^^^^^ object type
frontend/Draggable.js:19
19: _onUp: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `preventDefault` incompatible with invariant use in
49: onUp(evt: DOMEvent) {
^^^^^^^^ object type
frontend/Draggable.js:19
19: _onUp: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `stopPropagation` incompatible with invariant use in
49: onUp(evt: DOMEvent) {
^^^^^^^^ object type
frontend/Draggable.js:44
44: onMove(evt: DOMEvent) {
^^^^^^^^ property `cancelBubble`. Property not found in
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
frontend/Draggable.js:44
44: onMove(evt: DOMEvent) {
^^^^^^^^ property `keyCode`. Property not found in
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
frontend/Draggable.js:44
44: onMove(evt: DOMEvent) {
^^^^^^^^ property `key`. Property not found in
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
frontend/Draggable.js:49
49: onUp(evt: DOMEvent) {
^^^^^^^^ property `cancelBubble`. Property not found in
19: _onUp: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
frontend/Draggable.js:49
49: onUp(evt: DOMEvent) {
^^^^^^^^ property `keyCode`. Property not found in
19: _onUp: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
frontend/Draggable.js:49
49: onUp(evt: DOMEvent) {
^^^^^^^^ property `key`. Property not found in
19: _onUp: (evt: MouseEvent) => void;
^^^^^^^^^^ MouseEvent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment