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

Commit 764b4ad

Browse files
authored
fix: export ipfs-http-client types (#4120)
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.
1 parent 6acae1d commit 764b4ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/ipfs-http-client/src/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ import { createVersion } from './version.js'
4646
import globSourceImport from 'ipfs-utils/src/files/glob-source.js'
4747

4848
/**
49-
* @typedef {import('./types').EndpointConfig} EndpointConfig
50-
* @typedef {import('./types').Options} Options
5149
* @typedef {import('multiformats/codecs/interface').BlockCodec<any, any>} BlockCodec
5250
* @typedef {import('multiformats/hashes/interface').MultihashHasher} MultihashHasher
5351
* @typedef {import('multiformats/bases/interface').MultibaseCodec<any>} MultibaseCodec
52+
* @typedef {import('./types').Options} Options
53+
* @typedef {import('./types').LoadBaseFn} LoadBaseFn
54+
* @typedef {import('./types').LoadCodecFn} LoadCodecFn
55+
* @typedef {import('./types').LoadHasherFn} LoadHasherFn
56+
* @typedef {import('./types').IPLDOptions} IPLDOptions
57+
* @typedef {import('./types').HTTPClientExtraOptions} HTTPClientExtraOptions
58+
* @typedef {import('./types').EndpointConfig} EndpointConfig
5459
* @typedef {import('./types').IPFSHTTPClient} IPFSHTTPClient
5560
*/
5661

0 commit comments

Comments
 (0)