From 498d01848d8134be5e73a9644fa0fa17ddcc4053 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Wed, 1 Jun 2022 14:08:43 +0100 Subject: [PATCH] fix: export ipfs-http-client types 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. --- packages/ipfs-http-client/src/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/ipfs-http-client/src/index.js b/packages/ipfs-http-client/src/index.js index 38e5d9d859..2bc2340e71 100644 --- a/packages/ipfs-http-client/src/index.js +++ b/packages/ipfs-http-client/src/index.js @@ -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} BlockCodec * @typedef {import('multiformats/hashes/interface').MultihashHasher} MultihashHasher * @typedef {import('multiformats/bases/interface').MultibaseCodec} 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 */