Skip to content

Commit 51b7898

Browse files
committed
Refactor TargetsCalculationResponse to use CalculationLog type for logs
1 parent e8486e5 commit 51b7898

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/src/app/services/api/targets.service.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@ export interface Targets {
3434
}
3535
}
3636

37+
export interface CalculationLog {
38+
name: string;
39+
inputs: Record<string, unknown>;
40+
formula: string;
41+
result: unknown;
42+
}
43+
3744
export interface TargetsCalculationResponse {
3845
targets: Targets;
39-
logs?: any[]; // Optional calculation logs
46+
logs?: CalculationLog[]; // Optional calculation logs
4047
}
4148

4249
// Union type to handle both response formats

0 commit comments

Comments
 (0)