Skip to content

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Dec 8, 2023
1 parent 5ce7b90 commit 315f0b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ interface BaseData {

interface PostPlantData extends BaseData {
mode?: number
procReqTemp?: number
waterTemp?: number
}

interface ViewModel extends BaseData {
Expand All @@ -85,7 +83,10 @@ export interface PostData {

export interface GetData {
readonly data: {
readonly plantData: Readonly<Required<PostPlantData>>
readonly plantData: Readonly<Required<PostPlantData>> & {
readonly procReqTemp: number
readonly waterTemp: number
}
readonly plantSettings?: {
readonly antilegionellaOnOff: true
readonly preHeatingOnOff: true
Expand Down

0 comments on commit 315f0b0

Please sign in to comment.