From 4bfe060064422a6a307297ba62f2b6b87865fe00 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 13 Jan 2022 15:42:25 +1100 Subject: [PATCH] Export BootstrapOptions --- src/index.ts | 8 +++++++- src/lib/discovery/index.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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[],