mirror of https://github.com/waku-org/js-waku.git
Expose types to ensure documentation is complete
This commit is contained in:
parent
6276b1537f
commit
b65ab17cb9
|
@ -9,7 +9,7 @@ import { ENRTree } from './enrtree';
|
|||
|
||||
const dbg = debug('waku:discovery:dns');
|
||||
|
||||
type SearchContext = {
|
||||
export type SearchContext = {
|
||||
domain: string;
|
||||
publicKey: string;
|
||||
visits: { [key: string]: boolean };
|
||||
|
|
|
@ -7,14 +7,14 @@ import { ecdsaVerify } from 'secp256k1';
|
|||
import { ENR } from '../enr';
|
||||
import { keccak256Buf } from '../utils';
|
||||
|
||||
type ENRRootValues = {
|
||||
export type ENRRootValues = {
|
||||
eRoot: string;
|
||||
lRoot: string;
|
||||
seq: number;
|
||||
signature: string;
|
||||
};
|
||||
|
||||
type ENRTreeValues = {
|
||||
export type ENRTreeValues = {
|
||||
publicKey: string;
|
||||
domain: string;
|
||||
};
|
||||
|
|
|
@ -2,9 +2,9 @@ import { shuffle } from 'libp2p-gossipsub/src/utils';
|
|||
|
||||
export { getNodesFromHostedJson } from './hosted_json';
|
||||
export { Bootstrap, BootstrapOptions } from './bootstrap';
|
||||
export { DnsClient, DnsNodeDiscovery } from './dns';
|
||||
export { DnsClient, DnsNodeDiscovery, SearchContext } from './dns';
|
||||
export { Endpoints, DnsOverHttps } from './dns_over_https';
|
||||
export { ENRTree } from './enrtree';
|
||||
export { ENRTree, ENRTreeValues, ENRRootValues } from './enrtree';
|
||||
|
||||
export function getPseudoRandomSubset<T>(
|
||||
values: T[],
|
||||
|
|
|
@ -4,3 +4,4 @@ export * from './constants';
|
|||
export * from './enr';
|
||||
export * from './types';
|
||||
export * from './create';
|
||||
export * from './keypair';
|
||||
|
|
Loading…
Reference in New Issue