-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript 최신버전 적용 및 타입에러 수정 #2435
Conversation
Codecov ReportBase: 31.54% // Head: 31.54% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #2435 +/- ##
=======================================
Coverage 31.54% 31.54%
=======================================
Files 763 763
Lines 10824 10824
Branches 3425 3425
=======================================
Hits 3414 3414
Misses 7129 7129
Partials 281 281
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
packages/react-contexts/src/event-tracking-context/with-event-tracking-provider.tsx
Show resolved
Hide resolved
requestIdleCallback?(callback: () => void, timeout?: number): number | ||
cancelIdleCallback?(handle: number): void | ||
requestIdleCallback(callback: () => void, timeout?: number): number | ||
cancelIdleCallback(handle: number): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 lib/dom.d.ts에 정의 안되어 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
정의되어 있습니다! 옵셔널 안지우니까 요런 에러로 나오더라구요 TS2386: Overload signatures must all be optional or required.
음 근데 원래 타입 보니까 required인걸 optional로 쓰려고 그런것 같군요
이거 우선 ts ignore 걸어놓는거로 바꾸겠습니다..!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c5a1076 수정했습니다 🙇🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
declare global도 아예 지우는게 좋을 것 같아요.
dom.d.ts에 requestIdleCallback, cancelIdleCallback 정의 추가된 게 타입스크립트 4.4 버전이라서 없던 시절에 직접 정의해서 쓰던 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 정의가 원래 있던 게 아니군요! 수정했습니다~! c3c6136
PR 설명
변경 내역
체크리스트
스크린샷 & URL