summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNotesTimeline.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-05-22 13:05:28 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-05-22 13:05:28 +0900
commite4db9b64df75bfd56b72c0c11e8330b7b6776789 (patch)
tree977b984f9ca32bd7a009c2f6b1f73305a87cddf2 /packages/frontend/src/components/MkNotesTimeline.vue
parentrefactor(frontend): src -> anchorElement (diff)
downloadmisskey-e4db9b64df75bfd56b72c0c11e8330b7b6776789.tar.gz
misskey-e4db9b64df75bfd56b72c0c11e8330b7b6776789.tar.bz2
misskey-e4db9b64df75bfd56b72c0c11e8330b7b6776789.zip
refactor(frontend): better type defs
Diffstat (limited to 'packages/frontend/src/components/MkNotesTimeline.vue')
-rw-r--r--packages/frontend/src/components/MkNotesTimeline.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNotesTimeline.vue b/packages/frontend/src/components/MkNotesTimeline.vue
index aaaed5987e..fbf3eaec6f 100644
--- a/packages/frontend/src/components/MkNotesTimeline.vue
+++ b/packages/frontend/src/components/MkNotesTimeline.vue
@@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkPagination>
</template>
-<script lang="ts" setup>
+<script lang="ts" setup generic="T extends PagingCtx<'notes/mentions'>">
import { useTemplateRef } from 'vue';
import type { PagingCtx } from '@/composables/use-pagination.js';
import MkNote from '@/components/MkNote.vue';
@@ -41,7 +41,7 @@ import { globalEvents, useGlobalEvent } from '@/events.js';
import { isSeparatorNeeded, getSeparatorInfo } from '@/utility/timeline-date-separate.js';
const props = withDefaults(defineProps<{
- pagination: PagingCtx;
+ pagination: T;
noGap?: boolean;
disableAutoLoad?: boolean;
pullToRefresh?: boolean;