diff --git a/src/index.ts b/src/index.ts index 4887685ba3..2b318f1f5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,10 @@ -export { getNodesFromHostedJson, getPseudoRandomSubset } from './lib/discovery'; +export { + getNodesFromHostedJson, + getPseudoRandomSubset, + parseBootstrap, + BootstrapOptions, + BootstrapFn, +} from './lib/discovery'; export * as utils from './lib/utils'; diff --git a/src/lib/discovery/index.ts b/src/lib/discovery/index.ts index e3c9b429d4..dfc4be4c4f 100644 --- a/src/lib/discovery/index.ts +++ b/src/lib/discovery/index.ts @@ -1,7 +1,7 @@ import { shuffle } from 'libp2p-gossipsub/src/utils'; export { getNodesFromHostedJson } from './hosted_json'; -export { parseBootstrap } from './bootstrap'; +export { parseBootstrap, BootstrapOptions, BootstrapFn } from './bootstrap'; export function getPseudoRandomSubset( values: T[],