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

Commit 64cc1e1

Browse files
authored
fix: add missing type import (#3664)
And generic format type too.
1 parent 0fe8892 commit 64cc1e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ipfs-http-client/src/types.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Format as IPLDFormat } from 'interface-ipld-format'
22
import { Agent as HttpAgent } from 'http'
33
import { Agent as HttpsAgent } from 'https'
44
import { Multiaddr } from 'multiaddr'
5+
import { CodecName } from 'multicodec'
56

6-
export type LoadFormatFn = (name: CodecName) => Promise<IPLDFormat>
7+
export type LoadFormatFn = (name: CodecName) => Promise<IPLDFormat<any>>
78

89
export interface Options {
910
host?: string

0 commit comments

Comments
 (0)