Skip to content

Commit

Permalink
🧹 devtools; fix JSDoc names, spelling, typing, etc. (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Goulding <[email protected]>
  • Loading branch information
ryandgoulding authored Feb 7, 2024
1 parent efbcfdf commit 5e6199f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/devtools/src/common/assertion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { deepStrictEqual } from 'assert'
* const theyDontMatch = isDeepEqual({ a: 1 }, { a: '1' }) // false
* ```
*
* @param {T} a
* @param {unknown} a
* @param {unknown} b
* @returns {boolean}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/src/common/bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const isZero = (value: PossiblyBytes | PossiblyBigInt | null | undefined)
/**
* Turns a potentially zero address into undefined
*
* @param {PossiblyBytes | PossiblyBigInt | null | undefined} address
* @param {PossiblyBytes | PossiblyBigInt | null | undefined} value
*
* @returns {string | undefined}
*/
Expand Down
4 changes: 3 additions & 1 deletion packages/devtools/src/common/promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ type RetryStrategy<TInput extends unknown[]> = Factory<
* @returns {<TOutput>(task: Factory<TInput, TOutput>) => Factory<TInput, TOutput>}
*/
export const createRetryFactory =
<TInput extends unknown[]>(strategy: RetryStrategy<TInput> = createSimpleRetryStrategy(3)) =>
<TInput extends unknown[]>(
strategy: RetryStrategy<TInput> = createSimpleRetryStrategy(3)
): (<TOutput>(task: Factory<TInput, TOutput>) => Factory<TInput, TOutput>) =>
<TOutput>(task: Factory<TInput, TOutput>): Factory<TInput, TOutput> =>
async (...input) => {
// We'll store the last used input in this variable
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/src/transactions/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const createSignAndSend =
const successful: OmniTransactionWithReceipt[] = []

for (const [index, transaction] of transactions.entries()) {
// We want to refer to this transaction by index so we create an ordinal for it (1st, 2nd etc)
// We want to refer to this transaction by index, so we create an ordinal for it (1st, 2nd etc.)
const ordinal = pluralizeOrdinal(index + 1)

try {
Expand Down

0 comments on commit 5e6199f

Please sign in to comment.