🧹 Remove unused ClassValue type import in src/lib/utils.ts#93
Conversation
Co-authored-by: mbayue <70324722+mbayue@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
🎯 What: Removed the unused
ClassValueimport fromsrc/lib/utils.tsby updating the rest parameter type in thecnfunction toParameters<typeof clsx>.💡 Why: It removes an unnecessary import and lets TypeScript dynamically infer the parameter types directly from the wrapped
clsxfunction signature. This improves maintainability by reducing boilerplate and ensuring the types are exactly matched toclsx's definition.✅ Verification: Verified by running
bun run typecheckandbun test ./src/lib/utils.test.ts. The TypeScript compiler confirms that the parameter type resolves correctly and the tests continue to pass without error.✨ Result: A cleaner utility file with one fewer import and an automatically inferred, self-contained parameter type.
PR created automatically by Jules for task 14795973370558998747 started by @mbayue
Summary by cubic
Removed the unused
ClassValueimport insrc/lib/utils.tsand updated thecnfunction to use...inputs: Parameters<typeof clsx>. This ties the parameter types directly toclsxand removes boilerplate for a cleaner utility.Written for commit ede129e. Summary will update on new commits.