Skip to content

fix: dry type alias#12

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

fix: dry type alias#12
fmorency merged 1 commit intomainfrom
type-alias

Conversation

@fmorency
Copy link
Contributor

This pull request updates the DecCoin type definition to simplify and clarify its relationship with the existing Coin type. The most important change is that DecCoin is now defined as an alias of Coin, reflecting that they share the same structure.

Type definition simplification:

  • Changed the DecCoin type from a separate interface to a type alias of Coin in src/types.ts, and improved the documentation to clarify its usage and structure.

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

This PR simplifies the DecCoin type definition by making it a direct alias of the existing Coin type, and updates the documentation to clarify DecCoin’s intended semantic usage (decimal amounts in distribution contexts).

Changes:

  • Replaced the standalone DecCoin interface with export type DecCoin = Coin
  • Expanded the DecCoin JSDoc to explain decimal-amount semantics and common usage contexts

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

@fmorency fmorency merged commit 76b135a into main Jan 29, 2026
9 checks passed
@fmorency fmorency deleted the type-alias branch January 29, 2026 18:34
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