From c62b58add8c5671a45f41d896ea15a4df0282d3d Mon Sep 17 00:00:00 2001 From: hrntsm Date: Tue, 25 Jul 2023 11:35:14 +0900 Subject: [PATCH] Revert "Update interface of constraint to optional" This reverts commit 7fbcb1900cd0e68bd5820babf653531039a0c55f. --- optuna_dashboard/ts/apiClient.ts | 2 +- optuna_dashboard/ts/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/optuna_dashboard/ts/apiClient.ts b/optuna_dashboard/ts/apiClient.ts index b03f5691..12feaf4a 100644 --- a/optuna_dashboard/ts/apiClient.ts +++ b/optuna_dashboard/ts/apiClient.ts @@ -30,7 +30,7 @@ interface TrialResponse { system_attrs: Attribute[] note: Note artifacts: Artifact[] - constraints?: number[] + constraints: number[] } const convertTrialResponse = (res: TrialResponse): Trial => { diff --git a/optuna_dashboard/ts/types/index.d.ts b/optuna_dashboard/ts/types/index.d.ts index c49339e0..040a1fc3 100644 --- a/optuna_dashboard/ts/types/index.d.ts +++ b/optuna_dashboard/ts/types/index.d.ts @@ -112,7 +112,7 @@ type Trial = { }[] user_attrs: Attribute[] system_attrs: Attribute[] - constraints?: number[] + constraints: number[] note: Note artifacts: Artifact[] }