Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Nov 29, 2024
1 parent 7a395a9 commit 988ea2d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/filecoin-api/src/aggregator/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ export const handleAggregateInsertToPieceAcceptQueue = async (
// TODO: Batch per a maximum to queue
const results = await map(
pieces,
/** @returns {Promise<import('@ucanto/interface').Result<import('@ucanto/interface').Unit, RangeError|import('../types.js').QueueAddError>>} */
/**
* @param piece
* @returns {Promise<import('@ucanto/interface').Result<import('@ucanto/interface').Unit, RangeError|import('../types.js').QueueAddError>>}
*/
async piece => {
const inclusionProof = aggregateBuilder.resolveProof(piece.link)
if (inclusionProof.error) return inclusionProof
Expand Down
2 changes: 2 additions & 0 deletions packages/upload-api/src/access/claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ export const provide = (ctx) =>

/**
* Checks if the given Principal is an Account.
*
* @param {API.Principal} principal
* @returns {principal is API.Principal<API.DID<'mailto'>>}
*/
const isAccount = (principal) => principal.did().startsWith('did:mailto:')

/**
* Returns true when the delegation has a `ucan:*` capability.
*
* @param {API.Delegation} delegation
* @returns boolean
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ export const execute = async (agent, input) => {
* a receipt it will return receipt without running invocation.
*
* @template {Record<string, any>} S
* @param {Types.Invocation} invocation
* @param {Agent<S>} agent
* @param {Types.Invocation} invocation
*/
export const run = async (agent, invocation) => {
const cached = await agent.context.agentStore.receipts.get(invocation.link())
Expand Down
3 changes: 2 additions & 1 deletion packages/w3up-client/test/mocks/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as AccessCaps from '@web3-storage/capabilities'

/**
* Mocked Gateway/Content Serve service
*
* @param {{ ok: any } | { error: Server.API.Failure }} result
*/
export function getContentServeMockService(result = { ok: {} }) {
Expand All @@ -20,8 +21,8 @@ export function getContentServeMockService(result = { ok: {} }) {
/**
* Generic function to create connection to any type of mock service with any type of signer id.
*
* @param {any} service
* @param {any} id
* @param {any} service
*/
export function getConnection(id, service) {
const server = Server.create({
Expand Down

0 comments on commit 988ea2d

Please sign in to comment.