Skip to content
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

Merged
merged 3 commits into from
Dec 26, 2023

Conversation

GrapeApple0
Copy link
Contributor

What

paginationプロパティの型を明示しました

Why

paginationの型エラーでエラーを吐いているところが多かったため

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Dec 26, 2023
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9022b05) 79.78% compared to head (1c7f05b) 79.76%.

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.
📢 Have feedback on the report? Share it here.

@anatawa12
Copy link
Member

satisfiesのほうがいいかもしれない?

@GrapeApple0
Copy link
Contributor Author

修正しました🙏

@syuilo syuilo merged commit 6855079 into misskey-dev:develop Dec 26, 2023
15 checks passed
@syuilo
Copy link
Member

syuilo commented Dec 26, 2023

🙏🙏🙏

@acid-chicken
Copy link
Member

satisfiesのほうがいいかもしれない?

frontend で satisfies は現状使用できない

@acid-chicken
Copy link
Member

See #10365 (comment)

GrapeApple0 added a commit to GrapeApple0/misskey that referenced this pull request Dec 26, 2023
@syuilo
Copy link
Member

syuilo commented Dec 26, 2023

🤯🤯🤯

@GrapeApple0
Copy link
Contributor Author

satisfiesをasに変えるまたは取り消すprを送った方が良い感じでしょうか?

@acid-chicken
Copy link
Member

どのみち computed の type parameter に入れるべきでは

Comment on lines 83 to +86
const featuredPagination = {
endpoint: 'channels/featured' as const,
noPaging: true,
};
} satisfies Paging;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

computedでやるとこの部分がエラーを吐いてしまっています(limitがないのでそもそも型的におかしそうですが)

syuilo pushed a commit that referenced this pull request Dec 27, 2023
camilla-ett pushed a commit to kaseiski/misskey that referenced this pull request Jan 2, 2024
* refactor: paginationの型を明示する

* asではなくsatisfiesを使うように
camilla-ett pushed a commit to kaseiski/misskey that referenced this pull request Jan 2, 2024
madonuko pushed a commit to FyraLabs/nyaakey that referenced this pull request Feb 26, 2024
* refactor: paginationの型を明示する

* asではなくsatisfiesを使うように
madonuko pushed a commit to FyraLabs/nyaakey that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants