Skip to content
Snippets Groups Projects
Commit 2f9f0721 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

FIx type issue

parent 3a077be5
No related branches found
No related tags found
1 merge request!537Feat/us650 ecogesture form
......@@ -7,12 +7,22 @@ import {
WarmingType,
} from 'enum/profileType.enum'
interface ProfileEcogestureIndexableTypes {
[key: string]:
| IndividualOrCollective
| FluidType
| WarmingType
| EquipmentType[]
| string
| null
}
export type ProfileEcogestureAnswerChoices =
| string
| IndividualOrCollective
| HotWaterEquipment
| FluidType
| WarmingType
| EquipmentType[]
| number
| null
......@@ -22,9 +32,9 @@ export interface ProfileEcogestureAnswer {
choices: ProfileEcogestureAnswerChoices[]
}
export interface ProfileEcogesture {
export interface ProfileEcogesture extends ProfileEcogestureIndexableTypes {
heating: IndividualOrCollective
warmingFluid: WarmingType | null
hotWater: IndividualOrCollective
equipments: EquipmentType[] | string[]
equipments: EquipmentType[]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment