pmndrs / use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

Home Page:https://use-gesture.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typebug, useScroll has no xy parameters

datner opened this issue · comments

Describe the bug
pretty straightforward, the types got broken once I upgraded my typescript from 4.7 to 4.8

Sandbox or Video
image

Information:

  • Use Gesture version: v10.2.11 through v10.2.19 tested
  • Device: Macbook pro
  • OS: idk latest, doesn't really matter for this bug
  • Browser: ts-server 🤨

Checklist:

  • I've read the documentation.
  • If this is an issue with drag, I've tried setting touch-action: none to the draggable element.

Hmmm that's weird since I fixed this... yesterday or so in 10.2.19. Are you able to link to a repo? Or send me your tsconfig?

I technically can send you the repo, but it's quite big and I am not sure it'll be productive, but the tsconfig is pretty easy to send

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "baseUrl": "./",
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "strictNullChecks": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "noUncheckedIndexedAccess": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "tsBuildInfoFile": ".tsbuildinfo"
  },
  "exclude": ["node_modules", "**/*.e2e.ts", "cypress"],
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}

for whats its worth, typescript published a new minor like 4 hours ago. Which might have re-broke it? 🤔

@datner here's a small repo. Just run yarn install and yarn tsc. I'm not getting any errors on my end so I'll close until further notice..

nyw1ln.zip