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

This reverts commit 6855079811.
This commit is contained in:
GrapeApple0
2023-12-27 15:55:09 +09:00
committed by GitHub
parent 8904e0a12b
commit 6439c7b64b
37 changed files with 93 additions and 93 deletions

View File

@@ -73,7 +73,7 @@ const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>();
const type = ref('all');
const sort = ref('+createdAt');
const pagination = {
const pagination: Paging = {
endpoint: 'admin/invite/list' as const,
limit: 10,
params: computed(() => ({
@@ -81,7 +81,7 @@ const pagination = {
sort: sort.value,
})),
offsetMode: true,
} satisfies Paging;
};
const expiresAt = ref('');
const noExpirationDate = ref(true);
@@ -97,10 +97,10 @@ async function createWithOptions() {
os.alert({
type: 'success',
title: i18n.ts.inviteCodeCreated,
text: tickets.map(x => x.code).join('\n'),
text: tickets?.map(x => x.code).join('\n'),
});
tickets.forEach(ticket => pagingComponent.value?.prepend(ticket));
tickets?.forEach(ticket => pagingComponent.value?.prepend(ticket));
}
function deleted(id: string) {