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

View File

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

View File

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

View File

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