NameHub: {
    entries: ((includeReserved?) => [string, unknown][]);
    has: ((key) => boolean);
    keys: (() => string[]);
    lookup: ((...path) => Promise<any>);
    values: (() => unknown[]);
}

read-only access to a node in a name hierarchy

NOTE: We need to return arrays, not iterables, because even if marshal could allow passing a remote iterable, there would be an inordinate number of round trips for the contents of even the simplest nameHub.

Type declaration

  • entries: ((includeReserved?) => [string, unknown][])
      • (includeReserved?): [string, unknown][]
      • get all the entries available in the current NameHub

        Parameters

        • Optional includeReserved: boolean

        Returns [string, unknown][]

  • has: ((key) => boolean)
      • (key): boolean
      • Parameters

        • key: string

        Returns boolean

  • keys: (() => string[])
      • (): string[]
      • get all names available in the current NameHub

        Returns string[]

  • lookup: ((...path) => Promise<any>)
      • (...path): Promise<any>
      • Look up a path of keys starting from the current NameHub. Wait on any reserved promises.

        Parameters

        • Rest ...path: string[]

        Returns Promise<any>

  • values: (() => unknown[])
      • (): unknown[]
      • get all values available in the current NameHub

        Returns unknown[]

Generated using TypeDoc