index.d.ts 357 Bytes
Newer Older
Daniel Maricic's avatar
update  
Daniel Maricic committed
1 2 3 4 5 6 7 8 9 10 11 12 13
import 'ipfs-http-client'
import { ClientOptions } from 'ipfs-http-client/src/lib/core'
import Multiaddr from 'multiaddr'

declare module 'ipfs-http-client' {
  export as namespace ipfsClient
  export interface ipfsClientReturn {
    cat: (
      cid: string,
      options: ClientOptions | URL | Multiaddr | string
    ) => AsyncIterable<Uint8Array>
  }
}