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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 93 additions and 93 deletions

View file

@ -51,7 +51,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { computed, ref, watch } from 'vue';
import tinycolor from 'tinycolor2';
import * as os from '@/os.js';
import MkPagination from '@/components/MkPagination.vue';
import MkPagination, { Paging } from '@/components/MkPagination.vue';
import MkDriveFileThumbnail from '@/components/MkDriveFileThumbnail.vue';
import { i18n } from '@/i18n.js';
import bytes from '@/filters/bytes.js';
@ -64,7 +64,7 @@ const pagination = {
endpoint: 'drive/files' as const,
limit: 10,
params: computed(() => ({ sort: sortMode.value })),
};
} satisfies Paging;
const sortOptions = [
{ value: 'sizeDesc', displayName: i18n.ts._drivecleaner.orderBySizeDesc },