Commit e4ac6f1
🧹 [Code Health] Remove unnecessary ts-ignore by typing fetchBody as Record (#540)
🎯 What: Removed the ts-ignore comment above delete fetchBody.buildTime by explicitly typing the fetchBody object as Record<string, any>.
💡 Why: This makes the code cleaner and leverages TypeScript's type system to allow deleting properties legitimately, preventing the suppression of potentially useful type-checks.
✅ Verification: Ran tests via bun test src/ which all passed successfully. The TypeScript code is valid.
✨ Result: Improved readability and type safety in src/client.ts by removing a compiler directive.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: sunnylqm <615282+sunnylqm@users.noreply.github.com>1 parent f432044 commit e4ac6f1
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | 377 | | |
379 | 378 | | |
380 | 379 | | |
| |||
0 commit comments