Skip to content

fix: resolve typecheck errors - add DOM lib and HTMLElement cast#967

Open
maomaohz wants to merge 1 commit intovercel-labs:mainfrom
maomaohz:fix/typecheck-scrollby
Open

fix: resolve typecheck errors - add DOM lib and HTMLElement cast#967
maomaohz wants to merge 1 commit intovercel-labs:mainfrom
maomaohz:fix/typecheck-scrollby

Conversation

@maomaohz
Copy link

  • Add "DOM" to tsconfig lib for HTMLElement.scrollBy support
  • Cast element to HTMLElement in scrollBy call (not available on SVGElement)
  • git fetch vercel-labs
    git checkout fix/typecheck-scrollby
    git rebase vercel-labs/main
    git push -f fork fix/typecheck-scrollby

- Add "DOM" to tsconfig lib for HTMLElement.scrollBy support
- Cast element to HTMLElement in scrollBy call (not available on SVGElement)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Mar 23, 2026

@maomaohz is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@maomaohz
Copy link
Author

git fetch vercel-labs
git checkout fix/typecheck-scrollby
git rebase vercel-labs/main
git push -f fork fix/typecheck-scrollby

1 similar comment
@maomaohz
Copy link
Author

git fetch vercel-labs
git checkout fix/typecheck-scrollby
git rebase vercel-labs/main
git push -f fork fix/typecheck-scrollby

Copy link
Author

@maomaohz maomaohz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 信息:

  • Title: fix: resolve typecheck errors
  • Body:

Summary

  • Add "DOM" to tsconfig lib for HTMLElement.scrollBy support
  • Cast element to HTMLElement in scrollBy call (not available on SVGElement)

Test plan

  • Run npm run typecheck - passes
  • Run npm test - 171 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant