1
0

feat: type improvements

This commit is contained in:
Dominik Pschenitschni
2022-10-17 13:14:07 +02:00
parent 1002579173
commit 599e28e5e5
43 changed files with 162 additions and 135 deletions

View File

@ -7,7 +7,7 @@ import type { IAttachment } from '@/modelTypes/IAttachment'
import {downloadBlob} from '@/helpers/downloadBlob'
export default class AttachmentService extends AbstractService<AttachmentModel> {
export default class AttachmentService extends AbstractService<IAttachment> {
constructor() {
super({
create: '/tasks/{taskId}/attachments',

View File

@ -84,7 +84,7 @@ export function useSavedFilter(listId?: MaybeRef<IList['id']>) {
const filterService = shallowReactive(new SavedFilterService())
const filter = ref(new SavedFilterModel())
const filter = ref<ISavedFilter>(new SavedFilterModel())
const filters = computed({
get: () => filter.value.filters,
set(value) {
@ -92,7 +92,7 @@ export function useSavedFilter(listId?: MaybeRef<IList['id']>) {
},
})
// loadSavedFilter
// load SavedFilter
watch(() => unref(listId), async (watchedListId) => {
if (watchedListId === undefined) {
return