diff options
| author | GrapeApple0 <84321396+GrapeApple0@users.noreply.github.com> | 2023-12-26 21:40:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 21:40:27 +0900 |
| commit | 6855079811401be883167476726644e5730ea792 (patch) | |
| tree | c014508869071f474235f08e81a02770d9a56170 /packages/frontend/src/pages/channels.vue | |
| parent | fix(backend): 非センシティブのみ(リモートはいいねのみ)... (diff) | |
| download | misskey-6855079811401be883167476726644e5730ea792.tar.gz misskey-6855079811401be883167476726644e5730ea792.tar.bz2 misskey-6855079811401be883167476726644e5730ea792.zip | |
refactor: paginationの型を明示する (#12809)
* refactor: paginationの型を明示する
* asではなくsatisfiesを使うように
Diffstat (limited to 'packages/frontend/src/pages/channels.vue')
| -rw-r--r-- | packages/frontend/src/pages/channels.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/frontend/src/pages/channels.vue b/packages/frontend/src/pages/channels.vue index e58c89bb77..8bfae1a6e8 100644 --- a/packages/frontend/src/pages/channels.vue +++ b/packages/frontend/src/pages/channels.vue @@ -53,7 +53,7 @@ SPDX-License-Identifier: AGPL-3.0-only import { computed, onMounted, ref } from 'vue'; import MkChannelPreview from '@/components/MkChannelPreview.vue'; import MkChannelList from '@/components/MkChannelList.vue'; -import MkPagination from '@/components/MkPagination.vue'; +import MkPagination, { Paging } from '@/components/MkPagination.vue'; import MkInput from '@/components/MkInput.vue'; import MkRadios from '@/components/MkRadios.vue'; import MkButton from '@/components/MkButton.vue'; @@ -83,20 +83,20 @@ onMounted(() => { const featuredPagination = { endpoint: 'channels/featured' as const, noPaging: true, -}; +} satisfies Paging; const favoritesPagination = { endpoint: 'channels/my-favorites' as const, limit: 100, noPaging: true, -}; +} satisfies Paging; const followingPagination = { endpoint: 'channels/followed' as const, limit: 10, -}; +} satisfies Paging; const ownedPagination = { endpoint: 'channels/owned' as const, limit: 10, -}; +} satisfies Paging; async function search() { const query = searchQuery.value.toString().trim(); |