Skip to content

Commit 340d39f

Browse files
eg-renovate-userdd-eg-user
authored andcommitted
improve: replace 'any' with 'Record<string, any>' for better type safety
- Changes input field type from 'any' to 'Record<string, any>' - Adds documentation explaining why this type is used - Maintains flexibility while providing better type safety - Addresses feedback about eliminating 'any' usage
1 parent 96a3c73 commit 340d39f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/providers/tripo3d/getTask.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export interface Tripo3DTask {
3333
| 'unknown'
3434
| 'banned'
3535
| 'expired';
36-
input: any;
36+
// Input is always an object but structure varies by task type (13+ different types).
37+
// We use Record<string, any> as we're just passing through data without processing it.
38+
// Tripo3D validates the actual structure based on the task type.
39+
input: Record<string, any>;
3740
output: Tripo3DTaskOutput;
3841
progress: number;
3942
error_code?: number;

0 commit comments

Comments
 (0)