-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor: paginationの型を明示する #12809
refactor: paginationの型を明示する #12809
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #12809 +/- ##
===========================================
- Coverage 79.78% 79.76% -0.02%
===========================================
Files 956 956
Lines 108794 108794
Branches 8374 8369 -5
===========================================
- Hits 86800 86781 -19
- Misses 21994 22013 +19 ☔ View full report in Codecov by Sentry. |
satisfiesのほうがいいかもしれない? |
修正しました🙏 |
🙏🙏🙏 |
frontend で satisfies は現状使用できない |
See #10365 (comment) |
This reverts commit 6855079.
🤯🤯🤯 |
satisfiesをasに変えるまたは取り消すprを送った方が良い感じでしょうか? |
どのみち computed の type parameter に入れるべきでは |
const featuredPagination = { | ||
endpoint: 'channels/featured' as const, | ||
noPaging: true, | ||
}; | ||
} satisfies Paging; |
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.
computedでやるとこの部分がエラーを吐いてしまっています(limitがないのでそもそも型的におかしそうですが)
* refactor: paginationの型を明示する * asではなくsatisfiesを使うように
* refactor: paginationの型を明示する * asではなくsatisfiesを使うように
What
paginationプロパティの型を明示しました
Why
paginationの型エラーでエラーを吐いているところが多かったため
Additional info (optional)
Checklist