Skip to content

Migrate operations/ files to TS [5/6]#912

Merged
quietbits merged 8 commits intotypescript-migrationfrom
tsm-operations-5-of-6
Mar 6, 2026
Merged

Migrate operations/ files to TS [5/6]#912
quietbits merged 8 commits intotypescript-migrationfrom
tsm-operations-5-of-6

Conversation

@quietbits
Copy link
Contributor

Tests will be added in a separate PR (#896).

@quietbits quietbits linked an issue Mar 5, 2026 that may be closed by this pull request
10 tasks
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Size Change: -1.66 kB (-0.05%)

Total Size: 3.59 MB

Filename Size Change
dist/stellar-base.js 2.65 MB -1.55 kB (-0.06%)
dist/stellar-base.min.js 942 kB -110 B (-0.01%)

compressed-size-action

@quietbits quietbits requested a review from Copilot March 5, 2026 20:44
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

Migrates several operations/ modules from JS to TS and centralizes option typings for improved type-safety during operation construction.

Changes:

  • Added new operation option interfaces to src/operations/types.ts.
  • Converted multiple operations to TypeScript/ESM-style imports and typed OperationAttributes.
  • Replaced/remove legacy JS operation implementations with TS equivalents.

Reviewed changes

Copilot reviewed 9 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/operations/types.ts Adds typed option interfaces used by the migrated operations.
src/operations/revoke_sponsorship.ts Converts revoke-sponsorship operation builders to TS and shared option types.
src/operations/path_payment_strict_send.ts New TS implementation of pathPaymentStrictSend.
src/operations/path_payment_strict_send.js Removes legacy JS implementation after TS migration.
src/operations/create_claimable_balance.ts Converts create-claimable-balance builder to TS and typed attributes.
src/operations/clawback_claimable_balance.ts New TS implementation of clawbackClaimableBalance.
src/operations/clawback_claimable_balance.js Removes legacy JS implementation after TS migration.
src/operations/claim_claimable_balance.ts New TS implementation of claimClaimableBalance + validator.
src/operations/claim_claimable_balance.js Removes legacy JS implementation after TS migration.

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

You can also share your feedback on Copilot code review. Take the survey.

@quietbits quietbits requested a review from Ryang-21 March 5, 2026 21:04
@quietbits quietbits merged commit dbff944 into typescript-migration Mar 6, 2026
6 checks passed
@quietbits quietbits deleted the tsm-operations-5-of-6 branch March 6, 2026 17:56
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.

Migrate operations/ files to TS [5/6]

3 participants