Skip to content

Conversation

@Ryang-21
Copy link
Contributor

No description provided.

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

Updates the JSDoc for SigningCallback to correct the @returns type annotation.

Changes:

  • Fixes the @returns union type for SigningCallback to be expressed as a single Promise<...> resolving to a union.

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

src/auth.js Outdated
Comment on lines 20 to 22
* @returns {
* Promise<Uint8Array> |
* Promise<{signature: Uint8Array, publicKey: string}
* Promise<Uint8Array | {signature: Uint8Array, publicKey: string}>
* } the signature of the raw payload (which is the sha256 hash of the preimage
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

@returns is the only JSDoc in the repo using a multi-line type block (@returns { on one line, type on the next). To match the rest of the codebase (e.g., src/auth.js:65 and src/invocation.js:184-185) and improve tooling compatibility, put the full type on the same line as the tag (e.g., @returns {Promise<Uint8Array | {signature: Uint8Array, publicKey: string}>} ...).

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Jan 22, 2026

Size Change: -20 B (0%)

Total Size: 3.47 MB

Filename Size Change
dist/stellar-base.js 2.56 MB -20 B (0%)
ℹ️ View Unchanged
Filename Size
dist/stellar-base.min.js 906 kB

compressed-size-action

@Ryang-21 Ryang-21 merged commit 65970f9 into master Jan 22, 2026
8 checks passed
@Ryang-21 Ryang-21 deleted the fix-doc-build branch January 22, 2026 21:18
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