refactor: paginationの型を明示する (#12809)

* refactor: paginationの型を明示する

* asではなくsatisfiesを使うように
This commit is contained in:
GrapeApple0
2023-12-26 21:40:27 +09:00
committed by GitHub
parent 9022b05fea
commit 6855079811
37 changed files with 93 additions and 93 deletions

View File

@@ -129,7 +129,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { ref, computed } from 'vue';
import XInstanceMute from './mute-block.instance-mute.vue';
import XWordMute from './mute-block.word-mute.vue';
import MkPagination from '@/components/MkPagination.vue';
import MkPagination, { Paging } from '@/components/MkPagination.vue';
import { userPage } from '@/filters/user.js';
import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
@@ -142,17 +142,17 @@ import MkFolder from '@/components/MkFolder.vue';
const renoteMutingPagination = {
endpoint: 'renote-mute/list' as const,
limit: 10,
};
} satisfies Paging;
const mutingPagination = {
endpoint: 'mute/list' as const,
limit: 10,
};
} satisfies Paging;
const blockingPagination = {
endpoint: 'blocking/list' as const,
limit: 10,
};
} satisfies Paging;
const expandedRenoteMuteItems = ref([]);
const expandedMuteItems = ref([]);