Skip to content

Conversation

@jrgarciadev
Copy link
Member

  • Change the type of cn function to allow callable string representation.
  • Update import statement in MIGRATION-V3.md to use cx instead of cnBase.

Description

Fix this issue:

Type '(config?: TWMConfig | undefined) => CnReturn' is not assignable to type 'string'.
  // before
  <div className={cn("flex items-center justify-center gap-2", className)()}>

// after
  <div className={cn("flex items-center justify-center gap-2", className)}>

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Follow the Style Guide.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).

- Change the type of cn function to allow callable string representation.
- Update import statement in MIGRATION-V3.md to use cx instead of cnBase.
@jrgarciadev jrgarciadev merged commit 3a3afce into main Nov 22, 2025
4 checks passed
@jrgarciadev jrgarciadev deleted the fix/cn-types branch November 22, 2025 22:10
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.

2 participants