Export BootstrapOptions

This commit is contained in:
Franck Royer 2022-01-13 15:42:25 +11:00
parent 284644b822
commit 4bfe060064
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 8 additions and 2 deletions

View File

@ -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';

View File

@ -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<T>(
values: T[],