Client - fix typing

This commit is contained in:
Sam 2022-05-28 20:03:58 +02:00
parent b5d09008ee
commit 020b1f0558
4 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@
import { htmlLegendPlugin } from '@/components/Workout/WorkoutDetail/WorkoutChart/legend'
import { TUnit } from '@/types/units'
import { IUserProfile } from '@/types/user'
import { IAuthUserProfile } from '@/types/user'
import {
IWorkoutChartData,
IWorkoutData,
@ -68,7 +68,7 @@
import { getDatasets } from '@/utils/workouts'
interface Props {
authUser: IUserProfile
authUser: IAuthUserProfile
workoutData: IWorkoutData
}
const props = defineProps<Props>()

View File

@ -46,7 +46,7 @@
import WorkoutMap from '@/components/Workout/WorkoutDetail/WorkoutMap/index.vue'
import { WORKOUTS_STORE } from '@/store/constants'
import { ISport } from '@/types/sports'
import { IUserProfile } from '@/types/user'
import { IAuthUserProfile } from '@/types/user'
import {
IWorkout,
IWorkoutData,
@ -58,7 +58,7 @@
import { formatWorkoutDate, getDateWithTZ } from '@/utils/dates'
interface Props {
authUser: IUserProfile
authUser: IAuthUserProfile
displaySegment: boolean
sports: ISport[]
workoutData: IWorkoutData

View File

@ -243,7 +243,7 @@
import { ROOT_STORE, WORKOUTS_STORE } from '@/store/constants'
import { TAppConfig } from '@/types/application'
import { ISport } from '@/types/sports'
import { IUserProfile } from '@/types/user'
import { IAuthUserProfile } from '@/types/user'
import { IWorkout, IWorkoutForm } from '@/types/workouts'
import { useStore } from '@/use/useStore'
import { formatWorkoutDate, getDateWithTZ } from '@/utils/dates'
@ -252,7 +252,7 @@
import { convertDistance } from '@/utils/units'
interface Props {
authUser: IUserProfile
authUser: IAuthUserProfile
sports: ISport[]
isCreation?: boolean
loading?: boolean

View File

@ -165,12 +165,12 @@
import { LocationQuery, useRoute, useRouter } from 'vue-router'
import { ISport } from '@/types/sports'
import { IUserProfile } from '@/types/user'
import { IAuthUserProfile } from '@/types/user'
import { translateSports } from '@/utils/sports'
import { units } from '@/utils/units'
interface Props {
authUser: IUserProfile
authUser: IAuthUserProfile
sports: ISport[]
}
const props = defineProps<Props>()