Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Nov 19, 2024
1 parent 8dbe937 commit 4ab9c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/verified-fetch/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export function getLibp2pConfig (options: Libp2pOptionsInit): Libp2pOptions<Libp
const routers = options?.routers ?? ['https://delegated-ipfs.dev']
for (let index = 0; index < routers.length; index++) {
const routerUrl = routers[index]
config.services[`delegatedRouting${index}`] = () => createDelegatedRoutingV1HttpApiClient(routerUrl) // TODO: add filters
// @ts-expect-error for some reason the types are not working here
config.services[`delegatedRouting${index}`] = createDelegatedRoutingV1HttpApiClient(routerUrl) // TODO: add filters
}

return config
Expand Down
1 change: 1 addition & 0 deletions packages/verified-fetch/src/utils/libp2p-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export function getLibp2pConfig (options: Libp2pOptionsInit): Libp2pOptions<Libp
const routers = options?.routers ?? ['https://delegated-ipfs.dev']
for (let index = 0; index < routers.length; index++) {
const routerUrl = routers[index]
// @ts-expect-error for some reason the types are not working here
config.services[`delegatedRouting${index}`] = createDelegatedRoutingV1HttpApiClient(routerUrl) // TODO: add filters
}

Expand Down

0 comments on commit 4ab9c99

Please sign in to comment.