Skip to content

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 committed May 2, 2021
1 parent 473eea0 commit 993d6e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 993d6e3

Please sign in to comment.