Skip to content

fix: extract complex type#11

Merged
fmorency merged 1 commit intomainfrom
complex-type
Jan 29, 2026
Merged

fix: extract complex type#11
fmorency merged 1 commit intomainfrom
complex-type

Conversation

@fmorency
Copy link
Contributor

This pull request introduces a type alias to clarify and improve type safety when casting the registry parameter for SigningStargateClient.connectWithSigner. The main change is the extraction of the expected registry type into a reusable alias, which is then used in the CosmosClientManager class for better readability and maintainability.

Type safety and code clarity improvements:

  • Added a SigningClientRegistry type alias to extract the expected registry type from the SigningStargateClient.connectWithSigner function signature, ensuring type-safe casting and improving code clarity in src/client.ts.
  • Updated the type cast for registry in the CosmosClientManager class to use the new SigningClientRegistry alias instead of an inline conditional type.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Extracts a reusable type alias for the registry option expected by SigningStargateClient.connectWithSigner, improving readability and keeping the cast aligned with the upstream function signature.

Changes:

  • Added a SigningClientRegistry type alias derived from SigningStargateClient.connectWithSigner’s options parameter.
  • Replaced the inline conditional type cast with the new alias in CosmosClientManager.getSigningClient().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fmorency fmorency merged commit b1be7a9 into main Jan 29, 2026
9 checks passed
@fmorency fmorency deleted the complex-type branch January 29, 2026 17:52
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