Browse Source

Update doc comment on `PublicationTree`

master
buttercat1791 9 months ago
parent
commit
534fc23c8c
  1. 3
      src/lib/data_structures/publication_tree.ts

3
src/lib/data_structures/publication_tree.ts

@ -154,8 +154,11 @@ export class PublicationTree implements AsyncIterable<NDKEvent | null> { @@ -154,8 +154,11 @@ export class PublicationTree implements AsyncIterable<NDKEvent | null> {
/**
* Retrieves the addresses of the loaded children, if any, of the node with the given address.
*
* @param address The address of the parent node.
* @returns An array of addresses of any loaded child nodes.
*
* Note that this method resolves all children of the node.
*/
async getChildAddresses(address: string): Promise<Array<string | null>> {
const node = await this.#nodes.get(address)?.value();

Loading…
Cancel
Save