Skip to content

Commit

Permalink
Misc. jsdoc fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Nov 20, 2023
1 parent 85c9f91 commit 6e4377e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
8 changes: 2 additions & 6 deletions src/numbers/xdr_large_int.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ import xdr from '../xdr';
* integer-like values interpreted in big-endian order
*/
export class XdrLargeInt {
/**
* @type {xdr.LargeInt}
*/
/** @type {xdr.LargeInt} */
int; // child class of a jsXdr.LargeInt

/**
* @type {string} one of 'i64', 'u64', 'i128', 'u128', 'i256', or 'u256'
*/
/** @type {string} */
type;

constructor(type, values) {
Expand Down
2 changes: 1 addition & 1 deletion src/soroban.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Soroban helper class to assist with formatting and parsing token amounts. */
/* Helper class to assist with formatting and parsing token amounts. */

Check warning on line 1 in src/soroban.js

View workflow job for this annotation

GitHub Actions / build

JSDoc syntax error

Check warning on line 1 in src/soroban.js

View workflow job for this annotation

GitHub Actions / build

JSDoc syntax error
export class Soroban {
/**
* Given a whole number smart contract amount of a token and an amount of
Expand Down
16 changes: 8 additions & 8 deletions src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ export class Transaction extends TransactionBase {
}

/**
* @type {string} 64 bit account sequence
* 64 bit account sequence
* @readonly
* @type {string}
*/
get minAccountSequence() {
return this._minAccountSequence;
Expand All @@ -165,7 +166,8 @@ export class Transaction extends TransactionBase {
}

/**
* @type {number} 64 bit number of seconds
* 64 bit number of seconds
* @type {number}
* @readonly
*/
get minAccountSequenceAge() {
Expand All @@ -176,7 +178,8 @@ export class Transaction extends TransactionBase {
}

/**
* @type {number} 32 bit number of ledgers
* 32 bit number of ledgers
* @type {number}
* @readonly
*/
get minAccountSequenceLedgerGap() {
Expand All @@ -187,7 +190,8 @@ export class Transaction extends TransactionBase {
}

/**
* @type {string[]} array of extra signers (@{link StrKey}s)
* array of extra signers ({@link StrKey}s)
* @type {string[]}
* @readonly
*/
get extraSigners() {
Expand All @@ -204,7 +208,6 @@ export class Transaction extends TransactionBase {
get sequence() {
return this._sequence;
}

set sequence(value) {
throw new Error('Transaction is immutable');
}
Expand All @@ -216,7 +219,6 @@ export class Transaction extends TransactionBase {
get source() {
return this._source;
}

set source(value) {
throw new Error('Transaction is immutable');
}
Expand All @@ -228,7 +230,6 @@ export class Transaction extends TransactionBase {
get operations() {
return this._operations;
}

set operations(value) {
throw new Error('Transaction is immutable');
}
Expand All @@ -240,7 +241,6 @@ export class Transaction extends TransactionBase {
get memo() {
return Memo.fromXDRObject(this._memo);
}

set memo(value) {
throw new Error('Transaction is immutable');
}
Expand Down

0 comments on commit 6e4377e

Please sign in to comment.