store latest params in the store

This commit is contained in:
Kurt Hutten
2021-08-07 17:00:29 +10:00
parent 2d7df96ad9
commit 02160e1e8e
6 changed files with 43 additions and 35 deletions

View File

@@ -31,8 +31,8 @@ export interface HealthyResponse {
data: any
type: 'stl' | 'png' | 'geometry'
}
customizerParams?: any
lastParameters?: any
customizerParams?: any[]
currentParameters?: RawCustomizerParams
}
export interface RawCustomizerParams {
@@ -45,14 +45,14 @@ export function createHealthyResponse({
consoleMessage,
type,
customizerParams,
lastParameters,
currentParameters,
}: {
date: Date
data: any
consoleMessage: string
type: HealthyResponse['objectData']['type']
customizerParams?: any
lastParameters?: any
currentParameters?: any
}): HealthyResponse {
return {
status: 'healthy',
@@ -66,7 +66,7 @@ export function createHealthyResponse({
time: date,
},
customizerParams,
lastParameters,
currentParameters,
}
}