Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: add missing type import (#3664)
Browse files Browse the repository at this point in the history
And generic format type too.
  • Loading branch information
achingbrain authored May 2, 2021
1 parent 0fe8892 commit 64cc1e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ipfs-http-client/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { Format as IPLDFormat } from 'interface-ipld-format'
import { Agent as HttpAgent } from 'http'
import { Agent as HttpsAgent } from 'https'
import { Multiaddr } from 'multiaddr'
import { CodecName } from 'multicodec'

export type LoadFormatFn = (name: CodecName) => Promise<IPLDFormat>
export type LoadFormatFn = (name: CodecName) => Promise<IPLDFormat<any>>

export interface Options {
host?: string
Expand Down

0 comments on commit 64cc1e1

Please sign in to comment.