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

Commit

Permalink
fix: export ipfs-http-client types (#4120)
Browse files Browse the repository at this point in the history
With the addition of an export-map the `src/types.ts` file is no longer importable so make sure we can import the various ipfs-http-client type defs from the root.
  • Loading branch information
achingbrain authored Jun 1, 2022
1 parent 6acae1d commit 764b4ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ipfs-http-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ import { createVersion } from './version.js'
import globSourceImport from 'ipfs-utils/src/files/glob-source.js'

/**
* @typedef {import('./types').EndpointConfig} EndpointConfig
* @typedef {import('./types').Options} Options
* @typedef {import('multiformats/codecs/interface').BlockCodec<any, any>} BlockCodec
* @typedef {import('multiformats/hashes/interface').MultihashHasher} MultihashHasher
* @typedef {import('multiformats/bases/interface').MultibaseCodec<any>} MultibaseCodec
* @typedef {import('./types').Options} Options
* @typedef {import('./types').LoadBaseFn} LoadBaseFn
* @typedef {import('./types').LoadCodecFn} LoadCodecFn
* @typedef {import('./types').LoadHasherFn} LoadHasherFn
* @typedef {import('./types').IPLDOptions} IPLDOptions
* @typedef {import('./types').HTTPClientExtraOptions} HTTPClientExtraOptions
* @typedef {import('./types').EndpointConfig} EndpointConfig
* @typedef {import('./types').IPFSHTTPClient} IPFSHTTPClient
*/

Expand Down

0 comments on commit 764b4ad

Please sign in to comment.