taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.19k stars 782 forks source link

Missing TypeScript types (e.g. `styleCursor` option) #1014

Open DaniGuardiola opened 8 months ago

DaniGuardiola commented 8 months ago

Some TypeScript types appear to be missing. For example, the styleCursor option is missing here:

import interact from "@interactjs/interact";
import "@interactjs/auto-start";

interact('.some=element', { styleCursor: false });

I also found another missing type that I commented about elsewhere: https://github.com/taye/interact.js/issues/933#issuecomment-1783941040

Expected behavior

Types are correct.

Actual behavior

Types are incorrect, some are missing.

System configuration

interact.js version: 1.10.19 Browser name and version: electron v27+ (chromium) Operating System: Windows

taye commented 8 months ago

I've published a version that should resolve this issue.