feat: function attribute typing

This commit is contained in:
Dominik Pschenitschni 2022-06-23 03:20:07 +02:00
parent 8fb00653e4
commit 332acf012c
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
17 changed files with 48 additions and 41 deletions

View file

@ -163,6 +163,7 @@ import TaskCommentModel from '@/models/taskComment'
import {uploadFile} from '@/helpers/attachments'
import {success} from '@/message'
import type TaskModel from '@/models/task'
const props = defineProps({
taskId: {
type: Number,
@ -213,7 +214,7 @@ function attachmentUpload(...args) {
const taskCommentService = shallowReactive(new TaskCommentService())
async function loadComments(taskId) {
async function loadComments(taskId: TaskModel['id']) {
if (!enabled.value) {
return
}
@ -262,7 +263,7 @@ function toggleEdit(comment: TaskCommentModel) {
Object.assign(commentEdit, comment)
}
function toggleDelete(commentId) {
function toggleDelete(commentId: TaskCommentModel['id']) {
showDeleteModal.value = !showDeleteModal.value
commentToDelete.id = commentId
}