Commit 2f9f0721 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

FIx type issue

parent 3a077be5
......@@ -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[]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment