Skip to content

Commit

Permalink
chore: remove any type in local peers test (#487)
Browse files Browse the repository at this point in the history
This minor test-only change improves the types for a helper function.
  • Loading branch information
EvanHahn authored Feb 20, 2024
1 parent e7754a1 commit 2ec1154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-e2e/local-peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ test('Local peers discovery each other and share device info', async (t) => {
})

/**
* @param {any[]} array
* @template T
* @param {ReadonlyArray<T>} array
* @param {number} i
* @returns {Array<T>}
*/
function removeElementAt(array, i) {
return array.slice(0, i).concat(array.slice(i + 1))
Expand Down

0 comments on commit 2ec1154

Please sign in to comment.