Skip to content

Commit

Permalink
add ts-expect-error for type typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Mar 29, 2022
1 parent 2dccf3e commit 2029dfc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function modelsProvider(client: IScopedClusterClient, mlClient: MlClient)
* Provides the ML nodes overview with allocated models.
*/
async getNodesOverview(): Promise<NodesOverviewResponse> {
// @ts-expect-error typo in type definition: MlGetMemoryStatsResponse.cluser_name
const response = (await mlClient.getMemoryStats()) as MemoryStatsResponse;

const { trained_model_stats: trainedModelStats } = await mlClient.getTrainedModelsStats({
Expand Down

0 comments on commit 2029dfc

Please sign in to comment.