fix: improve some types

This commit is contained in:
Dominik Pschenitschni 2022-07-30 17:51:09 +02:00
parent f9b51306c3
commit 4a50e6aae2
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
4 changed files with 7 additions and 5 deletions

View file

@ -25,7 +25,7 @@ export default { inheritAttrs: false }
// NOTE: Do NOT use buttons with @click to push routes. => Use router-links instead! // NOTE: Do NOT use buttons with @click to push routes. => Use router-links instead!
import {ref, watchEffect, computed, useAttrs, PropType} from 'vue' import { ref, watchEffect, computed, useAttrs, type PropType } from 'vue'
const BASE_BUTTON_TYPES_MAP = Object.freeze({ const BASE_BUTTON_TYPES_MAP = Object.freeze({
button: 'button', button: 'button',

View file

@ -137,7 +137,7 @@ export default {name: 'userTeamShare'}
</script> </script>
<script setup lang="ts"> <script setup lang="ts">
import {ref, reactive, computed, shallowReactive, type ShallowReactive, type Ref} from 'vue' import {ref, reactive, computed, shallowReactive, type Ref} from 'vue'
import type {PropType} from 'vue' import type {PropType} from 'vue'
import {useStore} from '@/store' import {useStore} from '@/store'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'

View file

@ -30,7 +30,7 @@
{{ task.title }} {{ task.title }}
</span> </span>
<labels class="labels ml-2 mr-1" :labels="task.labels" v-if="task.labels.length > 0"/> <labels class="labels ml-2 mr-1" :labels="task.labels" v-if="task.labels.length > 0" />
<user <user
:avatar-size="27" :avatar-size="27"
:is-inline="true" :is-inline="true"
@ -96,11 +96,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue' import {defineComponent, type PropType} from 'vue'
import TaskModel, { type ITask } from '../../../models/task' import TaskModel, { type ITask } from '../../../models/task'
import PriorityLabel from './priorityLabel.vue' import PriorityLabel from './priorityLabel.vue'
import TaskService from '../../../services/task' import TaskService from '../../../services/task'
import Labels from '@/components/tasks/partials/labels.vue'
import User from '@/components/misc/user.vue'
import BaseButton from '@/components/base/BaseButton.vue' import BaseButton from '@/components/base/BaseButton.vue'
import Fancycheckbox from '../../input/fancycheckbox.vue' import Fancycheckbox from '../../input/fancycheckbox.vue'
import DeferTask from './defer-task.vue' import DeferTask from './defer-task.vue'

View file

@ -1,5 +1,5 @@
import {AuthenticatedHTTPFactory} from '@/http-common' import {AuthenticatedHTTPFactory} from '@/http-common'
import {AxiosResponse} from 'axios' import type {AxiosResponse} from 'axios'
let savedToken: string | null = null let savedToken: string | null = null