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

FIx type issue

parent 3a077be5
...@@ -7,12 +7,22 @@ import { ...@@ -7,12 +7,22 @@ import {
WarmingType, WarmingType,
} from 'enum/profileType.enum' } from 'enum/profileType.enum'
interface ProfileEcogestureIndexableTypes {
[key: string]:
| IndividualOrCollective
| FluidType
| WarmingType
| EquipmentType[]
| string
| null
}
export type ProfileEcogestureAnswerChoices = export type ProfileEcogestureAnswerChoices =
| string | string
| IndividualOrCollective | IndividualOrCollective
| HotWaterEquipment | HotWaterEquipment
| FluidType | FluidType
| WarmingType | WarmingType
| EquipmentType[]
| number | number
| null | null
...@@ -22,9 +32,9 @@ export interface ProfileEcogestureAnswer { ...@@ -22,9 +32,9 @@ export interface ProfileEcogestureAnswer {
choices: ProfileEcogestureAnswerChoices[] choices: ProfileEcogestureAnswerChoices[]
} }
export interface ProfileEcogesture { export interface ProfileEcogesture extends ProfileEcogestureIndexableTypes {
heating: IndividualOrCollective heating: IndividualOrCollective
warmingFluid: WarmingType | null warmingFluid: WarmingType | null
hotWater: IndividualOrCollective 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