Skip to content

🧹 Remove unused ClassValue type import in src/lib/utils.ts#93

Merged
mbayue merged 1 commit into
masterfrom
jules-14795973370558998747-903fa562
Jul 5, 2026
Merged

🧹 Remove unused ClassValue type import in src/lib/utils.ts#93
mbayue merged 1 commit into
masterfrom
jules-14795973370558998747-903fa562

Conversation

@mbayue

@mbayue mbayue commented Jul 5, 2026

Copy link
Copy Markdown
Owner

🎯 What: Removed the unused ClassValue import from src/lib/utils.ts by updating the rest parameter type in the cn function to Parameters<typeof clsx>.

💡 Why: It removes an unnecessary import and lets TypeScript dynamically infer the parameter types directly from the wrapped clsx function signature. This improves maintainability by reducing boilerplate and ensuring the types are exactly matched to clsx's definition.

Verification: Verified by running bun run typecheck and bun 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 ClassValue import in src/lib/utils.ts and updated the cn function to use ...inputs: Parameters<typeof clsx>. This ties the parameter types directly to clsx and removes boilerplate for a cleaner utility.

Written for commit ede129e. Summary will update on new commits.

Review in cubic

Co-authored-by: mbayue <70324722+mbayue@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@mbayue mbayue merged commit f977ba0 into master Jul 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant